@transcend-io/cli 0.0.0
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 +48 -0
- package/dist/bash-complete.js +3 -0
- package/dist/chunk-47G5FDLU.js +1 -0
- package/dist/chunk-CUW3DAWM.js +50 -0
- package/dist/cli.js +2 -0
- package/dist/impl-5UBV33AZ.js +1 -0
- package/dist/impl-C5XUSYMW.js +1 -0
- package/dist/impl-FHFC2HAT.js +1 -0
- package/dist/impl-K6O3OWIF.js +1 -0
- package/dist/impl-NGIMPDC5.js +1 -0
- package/dist/impl-PM2S76VA.js +1 -0
- package/dist/impl-SSLF7NRP.js +1 -0
- package/dist/impl-TLWL2SMI.js +1 -0
- package/package.json +69 -0
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Transcend CLI
|
|
2
|
+
|
|
3
|
+
## List arguments
|
|
4
|
+
|
|
5
|
+
CLI arguments that accept lists can be specified either as a delimited string or as the same argument passed multiple times. For example, the following help text shows that the `--origins` argument accepts a list of origins. It can be specified as a comma-separated string:
|
|
6
|
+
|
|
7
|
+
```console
|
|
8
|
+
FLAGS
|
|
9
|
+
[--origins]... The request origins to approve [separator = ,]
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The following commands are thus equivalent:
|
|
13
|
+
|
|
14
|
+
```console
|
|
15
|
+
npx @transcend-io/cli request approve --origins "US,EU"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```console
|
|
19
|
+
npx @transcend-io/cli request approve --origins US --origins EU
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The only exception is for arguments that have a default list value. In this case, there will be no `[separator = ,]` specification in the argument's help text.
|
|
23
|
+
|
|
24
|
+
## Development
|
|
25
|
+
|
|
26
|
+
Checkout the repo, and install with `--ignore-scripts` to avoid running the `postinstall` script.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pnpm install --ignore-scripts
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
In a separate terminal, build the CLI and watch for changes:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pnpm build:watch
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
To call the CLI while developing, you can use the following command:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pnpm start --help
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This is equivalent to calling the CLI entrypoint:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npx @transcend-io/cli --help
|
|
48
|
+
```
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{a as o,b as s}from"./chunk-CUW3DAWM.js";import"./chunk-47G5FDLU.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
|
+
`)}catch{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var h=Object.create;var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(a,b)=>()=>(a&&(b=a(a=0)),b);var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),o=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},g=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of j(b))!l.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=i(b,d))||f.enumerable});return a};var p=(a,b,c)=>(c=a!=null?h(k(a)):{},g(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a)),q=a=>g(e({},"__esModule",{value:!0}),a);export{m as a,n as b,o as c,p as d,q as e};
|