mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
feature(cloudcmd) add CLOUDCMD_PASSWORD
This commit is contained in:
parent
4860e467cb
commit
4a7b11de86
2 changed files with 5 additions and 2 deletions
1
HELP.md
1
HELP.md
|
|
@ -336,6 +336,7 @@ Some config options can be overridden with `environment variables` such:
|
|||
- `CLOUDCMD_TERMINAL_PATH` - set terminal path
|
||||
- `CLOUDCMD_CONFIG_DIALOG` - enable config dialog
|
||||
- `CLOUDCMD_AUTH` - enable authentication
|
||||
- `CLOUDCMD_PASSWORD` - set password
|
||||
|
||||
Menu
|
||||
---------------
|
||||
|
|
|
|||
|
|
@ -121,8 +121,10 @@ function main() {
|
|||
prefix: args.prefix
|
||||
};
|
||||
|
||||
if (args.password)
|
||||
config('password', getPassword(args.password));
|
||||
const password = env('password') || args.password;
|
||||
|
||||
if (password)
|
||||
config('password', getPassword(password));
|
||||
|
||||
validateRoot(options.root);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue