@swirls/cli 0.0.1 → 0.0.2
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/bash-complete.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as o,b as s}from"./chunk-
|
|
2
|
+
import{a as o,b as s}from"./chunk-E7IYMBSD.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 y,buildUninstallCommand as v}from"@stricli/auto-complete";import{buildApplication as
|
|
1
|
+
import{buildInstallCommand as y,buildUninstallCommand as v}from"@stricli/auto-complete";import{buildApplication as x,buildRouteMap as k}from"@stricli/core";import{buildCommand as o,buildRouteMap as p}from"@stricli/core";var m=o({loader:async()=>{let{login:e}=await import("./implementation-QPK3NH6Y.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Log in with an existing account"}}),u=o({loader:async()=>{let{logout:e}=await import("./implementation-QPK3NH6Y.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Log out of an existing account"}}),i=p({routes:{login:m,logout:u},docs:{brief:"Auth commands"}});import{buildCommand as r,buildRouteMap as d}from"@stricli/core";var f=r({loader:async()=>{let{generateCode:e}=await import("./generate-code-2LPT3ZI6.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Generate application code and types"}}),b=r({loader:async()=>{let{initializeConfig:e}=await import("./initialize-config-CQ27WZUI.js");return e},parameters:{positional:{kind:"tuple",parameters:[]}},docs:{brief:"Initialize Swirls configuration file"}}),n=d({routes:{gen:f,init:b},docs:{brief:"Developer commands"}});import{buildCommand as g,buildRouteMap as h}from"@stricli/core";var C=g({loader:async()=>{let{createProject:e}=await import("./create-project-ELA4VHQG.js");return e},parameters:{positional:{kind:"tuple",parameters:[{brief:"Project name",parse:String,placeholder:"name"}]}},docs:{brief:"Create a new project"}}),s=h({routes:{create:C},docs:{brief:"Project commands"}});var a="@swirls/cli",c="0.0.2",l="Swirls command line application";var w=k({routes:{auth:i,dev:n,project:s,install:y("cli",{bash:"__cli_bash_complete"}),uninstall:v("cli",{bash:!0})},docs:{brief:l,hideRoute:{install:!0,uninstall:!0}}}),q=x(w,{name:a,versionInfo:{currentVersion:c}});import j from"fs";import R from"fs/promises";import P from"os";import S from"path";function Q(e){return{fs:j,fsPromise:R,os:P,path:S,process:e}}export{q as a,Q 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-
|
|
2
|
+
import{a as r,b as o}from"./chunk-E7IYMBSD.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.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Swirls command line application",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Swirls",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"bin": {
|
|
11
11
|
"__cli_bash_complete": "./dist/bash-complete.js",
|
|
12
|
-
"
|
|
12
|
+
"cli": "./dist/cli.js"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|