Skip to content

Commit

Permalink
restrict env remove (#912)
Browse files Browse the repository at this point in the history
Co-authored-by: 长淇 <linanxuan.lnx@alibaba-inc.com>
  • Loading branch information
LanceXuanLi and 长淇 authored Jan 3, 2023
1 parent 9a174ed commit e4b1bd8
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 111 deletions.
212 changes: 106 additions & 106 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Component
Name: fc
Provider:
- 阿里云
Version: 0.1.64
Version: 0.1.65
Description: Basic components of Alibaba cloud functional computing
HomePage: https://github.com/devsapp/fc
Tags:
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,9 @@ export default class FcBaseComponent extends EntryPublicMethod {
case 'deploy':
core.help(HELP.ENV_DEPLOY);
return;
case 'remove':
core.help(HELP.ENV_REMOVE);
return;
// case 'remove':
// core.help(HELP.ENV_REMOVE);
// return;
case 'info':
core.help(HELP.ENV_INFO);
return;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/help/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const ENV_HELP_INFO = [
{ name: 'list-templates', summary: 'List all environment templates.' },
{ name: 'init', summary: 'Create a new environment interactive. Help command [s env init -h]' },
{ name: 'deploy', summary: 'Deploy an environment associated with templates. Help command [s env deploy -h]' },
{ name: 'remove', summary: 'Destroy an environment. Help command [s env deploy -h].' },
// { name: 'remove', summary: 'Destroy an environment. Help command [s env deploy -h].' },
{ name: 'info', summary: 'Show the information of a environment. Help command [s env info -h]' },
{ name: 'list', summary: 'List all environments associated with specified aliyun account.' },
],
Expand Down

0 comments on commit e4b1bd8

Please sign in to comment.