Skip to content

Commit 7a8d71c

Browse files
committed
refactor: v0.1.19
1 parent 989452a commit 7a8d71c

File tree

192 files changed

+35017
-23257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+35017
-23257
lines changed

dist/command/alias.d.ts

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
export declare function list(): void;
2+
export declare function publish(): void;
3+
export declare function get(): void;
4+
/**
5+
* s alias <sub-command>\n
6+
* @pre_help
7+
* {"header":"Alias","content":"Service alias operation"}
8+
* @after_help
9+
* {"header": "SubCommand List", "content": [{"desc":"get","example":"Get alias details, you can get help through [s alias get -h]"},{"desc":"list","example":"View the list of service alias, you can get help through [s alias list -h]"},{"desc":"publish","example":"Publish service alias, you can get help through [s alias publish -h]"}]}
10+
*/
11+
export interface AliasInputsArgs {
12+
}
13+
/**
14+
* s alias get\n
15+
* @pre_help
16+
* {"header":"Alias get","content":"Get alias details"}
17+
* @after_help
18+
* {"ref":"GlobalParams"}
19+
* @example
20+
* {"header": "Examples with Yaml","content": ["$ s alias get --alias-name xxx"]}
21+
* @example
22+
* {"header": "Examples with CLI","content": ["$ s cli fc alias get --region cn-hangzhou --service-name name --alias-name xxx"]}
23+
*/
24+
export interface AliasGetInputsArgs {
25+
/**
26+
* Specify the region of alicloud
27+
*/
28+
region: string;
29+
/**
30+
* Specify the alicloud fc service name
31+
*/
32+
'service-name': string;
33+
/**
34+
* Specify the alias name parameter
35+
*/
36+
'alias-name': string;
37+
}
38+
/**
39+
* s alias list <options>\n
40+
* @pre_help
41+
* {"header":"Alias list","content":"View the list of service alias"}
42+
* @after_help
43+
* {"ref":"GlobalParams"}
44+
* @example
45+
* {"header": "Examples with Yaml","content": ["$ s alias list"]}
46+
* @example
47+
* {"header": "Examples with CLI","content": ["$ s cli fc alias list --region cn-hangzhou --service-name name"]}
48+
*/
49+
export interface AliasListInputsArgs {
50+
/**
51+
* Specify the region of alicloud
52+
*/
53+
region: string;
54+
/**
55+
* Specify the alicloud fc service name
56+
*/
57+
'service-name': string;
58+
/**
59+
* Table format output
60+
*/
61+
'table': boolean;
62+
}
63+
/**
64+
* s alias publish <options>\n
65+
* @pre_help
66+
* {"header":"Alias publish","content":"Publish service alias"}
67+
* @after_help
68+
* {"ref":"GlobalParams"}
69+
* @example
70+
* {"header": "Examples with Yaml","content": ["$ s alias publish --alias-name pre --version 2","$ s exec -- alias publish --description xxx --alias-name pre --version 2 --gversion 3 --weight 20"]}
71+
* @example
72+
* {"header": "Examples with CLI","content": ["$ s cli fc alias publish --region cn-hangzhou --service-name name --alias-name pre --version 2"]}
73+
*/
74+
export interface AliasPublishInputsArgs {
75+
/**
76+
* Specify the region of alicloud
77+
*/
78+
region: string;
79+
/**
80+
* Specify the alicloud fc service name
81+
*/
82+
'service-name': string;
83+
/**
84+
* Specify the alicloud fc alias name
85+
*/
86+
'alias-name': string;
87+
/**
88+
* Specify the version parameter
89+
*/
90+
'version': string;
91+
/**
92+
* Specify the description parameter
93+
*/
94+
'description': string;
95+
/**
96+
* Specify the grayscale version id parameter
97+
*/
98+
'gversion': string;
99+
/**
100+
* Specify the weight parameter
101+
*/
102+
'weight': string;
103+
}
104+
/**
105+
* s alias remove <options>\n
106+
* @pre_help
107+
* {"header":"Alias remove","content":"Delete service alias"}
108+
* @after_help
109+
* {"ref":"GlobalParams"}
110+
* @example
111+
* {"header": "Examples with Yaml","content": ["$ s alias remove --alias-name xxx"]}
112+
* @example
113+
* {"header": "Examples with CLI","content": ["$ s cli fc alias remove --region cn-hangzhou --service-name name --alias-name xxx"]}
114+
*/
115+
export interface AliasDeleteInputsArgs {
116+
/**
117+
* Specify the region of alicloud
118+
*/
119+
region: string;
120+
/**
121+
* Specify the alicloud fc service name
122+
*/
123+
'service-name': string;
124+
/**
125+
* Specify the alias name parameter
126+
*/
127+
'alias-name': string;
128+
}
129+
/**
130+
* s alias removeAll <options>\n
131+
* @pre_help
132+
* {"header":"Alias removeAll","content":"Delete service all alias"}
133+
* @after_help
134+
* {"ref":"GlobalParams"}
135+
* @example
136+
* {"header": "Examples with Yaml","content": ["$ s alias removeAll"]}
137+
* @example
138+
* {"header": "Examples with CLI","content": ["$ s cli fc alias removeAll --region cn-hangzhou --service-name name"]}
139+
*/
140+
export interface AliasDeleteAllInputsArgs {
141+
/**
142+
* Specify the region of alicloud
143+
*/
144+
region: string;
145+
/**
146+
* Specify the alicloud fc service name
147+
*/
148+
'service-name': string;
149+
}

dist/command/alias.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/command/info.d.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* s info <options>\n
3+
* @pre_help
4+
* {"header":"Info","content":"Query online resource details"}
5+
* @after_help
6+
* {"ref":"GlobalParams"}
7+
* @example
8+
* {"header": "Examples with Yaml","content": ["$ s {bold info}","$ s <ProjectName> {bold info}"]}
9+
* @example
10+
* {"header": "Examples with CLI","content": ["$ s cli fc info --region region --service-name serviceName --access accessName","$ s cli fc info --region region --service-name serviceName --function-name functionName --trigger-name triggerName --access accessName"]}
11+
*/
12+
export interface InfoInputsArgs {
13+
/**
14+
* Specify the region of alicloud
15+
*/
16+
region: string;
17+
/**
18+
* Specify the alicloud fc service name
19+
*/
20+
'service-name': string;
21+
/**
22+
* Specify the alicloud fc function name
23+
*/
24+
'function-name'?: string;
25+
}

dist/command/info.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/command/invoke.d.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* s invoke <options>\n
3+
* @pre_help
4+
* {"header":"Invoke","content":"Invoke/trigger online functions"}
5+
* @after_help
6+
* {"ref":"GlobalParams"}
7+
* @example
8+
* {"header": "Examples with Yaml","content": ["$ s invoke","$ s <ProjectName> invoke"]}
9+
* @example
10+
* {"header": "Examples with CLI","content": ["$ s cli fc invoke --region cn-hangzhou --service-name myService --function-name myFunction --event <payload>","$ s cli fc info --region region --service-name serviceName --function-name functionName --trigger-name triggerName --access accessName", "$ s cli fc invoke --region cn-hangzhou --service-name myService --function-name myFunction --event-file <file-path>"]}
11+
*/
12+
export interface InvokeInputsArgs {
13+
/**
14+
* Specify the region of alicloud
15+
*/
16+
region: string;
17+
/**
18+
* Specify the alicloud fc service name
19+
*/
20+
'service-name': string;
21+
/**
22+
* Specify the alicloud fc function name
23+
*/
24+
'function-name': string;
25+
/**
26+
* Invocation type: optional value "async"|"sync", default value "sync" (default: "sync")
27+
*/
28+
'invocation-type'?: string;
29+
/**
30+
* Event data (strings) passed to the function during invocation (default: "").Http function format refers to [https://github.com/devsapp/fc-remote-invoke#特别说明]
31+
*/
32+
'event'?: string;
33+
/**
34+
* Event funtion: A file containing event data passed to the function during invoke. Http function: A file containing http request options sent to http trigger. Format refers to [https://github.com/devsapp/fc-remote-invoke#特别说明]
35+
*/
36+
'event-file'?: string;
37+
/**
38+
* Read from standard input, to support script pipeline.Http function format refers to [https://github.com/devsapp/fc-remote-invoke#特别说明]
39+
*/
40+
'event-stdin'?: string;
41+
}

dist/command/invoke.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)