mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 17:29:27 +00:00
feature(cloudcmd) --name: add ability to set tab name in web browser
This commit is contained in:
parent
9ef0dd02dd
commit
9cdca9efe5
12 changed files with 93 additions and 20 deletions
|
|
@ -19,6 +19,7 @@ const choose = (a, b) => {
|
|||
const argv = process.argv;
|
||||
const args = require('minimist')(argv.slice(2), {
|
||||
string: [
|
||||
'name',
|
||||
'port',
|
||||
'password',
|
||||
'username',
|
||||
|
|
@ -46,6 +47,7 @@ const args = require('minimist')(argv.slice(2), {
|
|||
],
|
||||
default: {
|
||||
server : true,
|
||||
name : env('name') || config('name'),
|
||||
auth : choose(env('auth'), config('auth')),
|
||||
port : config('port'),
|
||||
online : config('online'),
|
||||
|
|
@ -95,6 +97,7 @@ function main() {
|
|||
|
||||
port(args.port);
|
||||
|
||||
config('name', args.name);
|
||||
config('auth', args.auth);
|
||||
config('online', args.online);
|
||||
config('open', args.open);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue