@tscircuit/cli 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1527,6 +1527,10 @@ var devServerUpload = async (ctx, args2) => {
1527
1527
  const watcher = await startWatcher({ cwd: params.dir, devServerAxios });
1528
1528
  }
1529
1529
  };
1530
+ // lib/cmd-fns/config-clear.ts
1531
+ var configClear = async (ctx, args2) => {
1532
+ ctx.global_config.clear();
1533
+ };
1530
1534
  // lib/cmd-fns/open.ts
1531
1535
  import {existsSync as existsSync4, readFileSync as readFileSync6} from "fs";
1532
1536
  import kleur16 from "kleur";
@@ -1546,7 +1550,7 @@ var openCmd = async (ctx, args2) => {
1546
1550
  // package.json
1547
1551
  var package_default = {
1548
1552
  name: "@tscircuit/cli",
1549
- version: "0.0.16",
1553
+ version: "0.0.17",
1550
1554
  private: false,
1551
1555
  type: "module",
1552
1556
  description: "Command line tool for developing, publishing and installing tscircuit circuits",
@@ -1639,6 +1643,7 @@ var getProgram = (ctx) => {
1639
1643
  configCmd.command("set-session").requiredOption("--session-token <session_token>", "Session Token").action((args2) => configSetSession(ctx, args2));
1640
1644
  configCmd.command("set-log-requests").requiredOption("--log-requests", "Should log requests to registry").action((args2) => configSetLogRequests(ctx, args2));
1641
1645
  configCmd.command("print-config").action((args2) => configPrintConfig(ctx, args2));
1646
+ configCmd.command("clear").action((args2) => configClear(ctx, args2));
1642
1647
  const authSessionsCmd = authCmd.command("sessions");
1643
1648
  authSessionsCmd.command("create").action((args2) => authSessionsCreate(ctx, args2));
1644
1649
  authSessionsCmd.command("list").action((args2) => authSessionsList(ctx, args2));
@@ -47,6 +47,7 @@ export const getProgram = (ctx: AppContext) => {
47
47
  configCmd
48
48
  .command("print-config")
49
49
  .action((args) => CMDFN.configPrintConfig(ctx, args))
50
+ configCmd.command("clear").action((args) => CMDFN.configClear(ctx, args))
50
51
 
51
52
  const authSessionsCmd = authCmd.command("sessions")
52
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Command line tool for developing, publishing and installing tscircuit circuits",