@swirls/cli 0.0.14 → 0.0.15

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/README.md CHANGED
@@ -27,11 +27,9 @@ Run with `swirls`
27
27
  swirls <command> [options]
28
28
  ```
29
29
 
30
- In the command tables below, replace `swirls` with `npx @swirls/cli` when running remotely.
31
-
32
30
  ## Reference
33
31
 
34
- Run `swirls --help` or `npx @swirls/cli --help` for a reference guide. Use `-v` or `--version` to print the CLI version.
32
+ Use `--help` for a helpful reference guide on how to use the CLI. Use `-v` or `--version` to print the CLI version.
35
33
 
36
34
  ### Remote
37
35
  ```sh
@@ -45,6 +43,8 @@ swirls --help
45
43
 
46
44
  ## Commands
47
45
 
46
+ > In the command tables below, replace `swirls` with `npx @swirls/cli` when running remotely.
47
+
48
48
  ### Auth
49
49
 
50
50
  Log in and out of Swirls.
@@ -73,7 +73,7 @@ Create and manage Swirls projects.
73
73
 
74
74
  ### Storage
75
75
 
76
- File storage for your Swirls project. List, upload, download, delete, and get signed URLs for files.
76
+ Manage file storage for your Swirls project.
77
77
 
78
78
  | Command | Description |
79
79
  |---------|-------------|
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{a as o,b as s}from"./chunk-QY4A67JY.js";import{proposeCompletions as r}from"@stricli/core";var t=process.argv.slice(3);process.env.COMP_LINE?.endsWith(" ")&&t.push("");await r(o,t,s(process));try{for(let{completion:p}of await r(o,t,s(process)))process.stdout.write(`${p}
2
+ import{a as o,b as s}from"./chunk-X3Q63YSL.js";import{proposeCompletions as r}from"@stricli/core";var t=process.argv.slice(3);process.env.COMP_LINE?.endsWith(" ")&&t.push("");await r(o,t,s(process));try{for(let{completion:p}of await r(o,t,s(process)))process.stdout.write(`${p}
3
3
  `)}catch{}
@@ -1 +1 @@
1
- import{buildInstallCommand as R,buildUninstallCommand as L}from"@stricli/auto-complete";import{buildApplication as D,buildRouteMap as I}from"@stricli/core";import{buildCommand as r,buildRouteMap as u}from"@stricli/core";var m=r({loader:async()=>{let{login:e}=await import("./implementation-26623XVE.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Log in with an existing account"}}),f=r({loader:async()=>{let{logout:e}=await import("./implementation-26623XVE.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Log out of an existing account"}}),i=u({routes:{login:m,logout:f},docs:{brief:"Auth commands"}});import{buildCommand as a,buildRouteMap as g}from"@stricli/core";var b=a({loader:async()=>{let{generateCode:e}=await import("./generate-code-OKMZDZXA.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Generate application code and types"}}),h=a({loader:async()=>{let{initializeConfig:e}=await import("./initialize-config-DKTZP3W4.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Initialize Swirls configuration file"}}),s=g({routes:{gen:b,init:h},docs:{brief:"Developer commands"}});import{buildCommand as k,buildRouteMap as C}from"@stricli/core";var w=k({loader:async()=>{let{createProject:e}=await import("./create-project-HOGHQFPY.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Project name",parse:String,placeholder:"name"}]}},docs:{brief:"Create a new project"}}),n=C({routes:{create:w},docs:{brief:"Project commands"}});import{buildCommand as t,buildRouteMap as j}from"@stricli/core";var S=t({loader:async()=>{let{list:e}=await import("./list-O3YBIAFJ.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Path to list (optional)",parse:String,placeholder:"path",optional:!0}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0}}},docs:{brief:"List files in storage"}}),y=t({loader:async()=>{let{upload:e}=await import("./upload-L5G6SWZJ.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Local file path to upload",parse:String,placeholder:"file"},{brief:"Destination path in storage (optional)",parse:String,placeholder:"dest",optional:!0}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0}}},docs:{brief:"Upload a file to storage"}}),x=t({loader:async()=>{let{download:e}=await import("./download-3FOT4FPQ.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Path to file in storage",parse:String,placeholder:"path"},{brief:"Local destination path",parse:String,placeholder:"dest"}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0}}},docs:{brief:"Download a file from storage"}}),v=t({loader:async()=>{let{deleteFile:e}=await import("./delete-RSC6OYLX.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Path to file in storage",parse:String,placeholder:"path"}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0}}},docs:{brief:"Delete a file from storage"}}),P=t({loader:async()=>{let{url:e}=await import("./url-LHTDDDUD.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Path to file in storage",parse:String,placeholder:"path"}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0},expires:{kind:"parsed",brief:"Expiration time in seconds (default: 86400 = 24 hours)",parse:Number,optional:!0}}},docs:{brief:"Get a signed URL for a file"}}),p=j({routes:{list:S,upload:y,download:x,delete:v,url:P},docs:{brief:"Storage commands"}});var l="@swirls/cli",c="0.0.14",d="Swirls command line application";var _=I({routes:{auth:i,dev:s,project:n,storage:p,install:R("cli",{bash:"__cli_bash_complete"}),uninstall:L("cli",{bash:!0})},docs:{brief:d,hideRoute:{install:!0,uninstall:!0}}}),Y=D(_,{name:l,versionInfo:{currentVersion:c}});import z from"fs";import M from"fs/promises";import N from"os";import A from"path";function ie(e){return{fs:z,fsPromise:M,os:N,path:A,process:e}}export{Y as a,ie as b};
1
+ import{buildInstallCommand as R,buildUninstallCommand as L}from"@stricli/auto-complete";import{buildApplication as D,buildRouteMap as I}from"@stricli/core";import{buildCommand as r,buildRouteMap as u}from"@stricli/core";var m=r({loader:async()=>{let{login:e}=await import("./implementation-26623XVE.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Log in with an existing account"}}),f=r({loader:async()=>{let{logout:e}=await import("./implementation-26623XVE.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Log out of an existing account"}}),i=u({routes:{login:m,logout:f},docs:{brief:"Auth commands"}});import{buildCommand as a,buildRouteMap as g}from"@stricli/core";var b=a({loader:async()=>{let{generateCode:e}=await import("./generate-code-OKMZDZXA.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Generate application code and types"}}),h=a({loader:async()=>{let{initializeConfig:e}=await import("./initialize-config-DKTZP3W4.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Initialize Swirls configuration file"}}),s=g({routes:{gen:b,init:h},docs:{brief:"Developer commands"}});import{buildCommand as k,buildRouteMap as C}from"@stricli/core";var w=k({loader:async()=>{let{createProject:e}=await import("./create-project-HOGHQFPY.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Project name",parse:String,placeholder:"name"}]}},docs:{brief:"Create a new project"}}),n=C({routes:{create:w},docs:{brief:"Project commands"}});import{buildCommand as t,buildRouteMap as j}from"@stricli/core";var S=t({loader:async()=>{let{list:e}=await import("./list-O3YBIAFJ.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Path to list (optional)",parse:String,placeholder:"path",optional:!0}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0}}},docs:{brief:"List files in storage"}}),y=t({loader:async()=>{let{upload:e}=await import("./upload-L5G6SWZJ.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Local file path to upload",parse:String,placeholder:"file"},{brief:"Destination path in storage (optional)",parse:String,placeholder:"dest",optional:!0}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0}}},docs:{brief:"Upload a file to storage"}}),x=t({loader:async()=>{let{download:e}=await import("./download-3FOT4FPQ.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Path to file in storage",parse:String,placeholder:"path"},{brief:"Local destination path",parse:String,placeholder:"dest"}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0}}},docs:{brief:"Download a file from storage"}}),v=t({loader:async()=>{let{deleteFile:e}=await import("./delete-RSC6OYLX.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Path to file in storage",parse:String,placeholder:"path"}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0}}},docs:{brief:"Delete a file from storage"}}),P=t({loader:async()=>{let{url:e}=await import("./url-LHTDDDUD.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Path to file in storage",parse:String,placeholder:"path"}]},flags:{project:{kind:"parsed",brief:"Project ID (uses config if not specified)",parse:String,optional:!0},expires:{kind:"parsed",brief:"Expiration time in seconds (default: 86400 = 24 hours)",parse:Number,optional:!0}}},docs:{brief:"Get a signed URL for a file"}}),p=j({routes:{list:S,upload:y,download:x,delete:v,url:P},docs:{brief:"Storage commands"}});var l="@swirls/cli",c="0.0.15",d="Swirls command line application";var _=I({routes:{auth:i,dev:s,project:n,storage:p,install:R("cli",{bash:"__cli_bash_complete"}),uninstall:L("cli",{bash:!0})},docs:{brief:d,hideRoute:{install:!0,uninstall:!0}}}),Y=D(_,{name:l,versionInfo:{currentVersion:c}});import z from"fs";import M from"fs/promises";import N from"os";import A from"path";function ie(e){return{fs:z,fsPromise:M,os:N,path:A,process:e}}export{Y as a,ie as b};
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{a as r,b as o}from"./chunk-QY4A67JY.js";import{run as i}from"@stricli/core";await i(r,process.argv.slice(2),o(process));
2
+ import{a as r,b as o}from"./chunk-X3Q63YSL.js";import{run as i}from"@stricli/core";await i(r,process.argv.slice(2),o(process));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swirls/cli",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Swirls command line application",
5
5
  "author": {
6
6
  "name": "Swirls",