Skip to content

Commit

Permalink
feat: adminPassword option
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 5, 2017
1 parent 37f4b82 commit ccaa7da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/hoodie-defaults.js
Expand Up @@ -9,6 +9,7 @@ function getHoodieDefaults () {
dbUrl: undefined,
inMemory: false,
loglevel: 'warn',
url: undefined
url: undefined,
adminPassword: undefined
}
}
5 changes: 5 additions & 0 deletions cli/options.js
Expand Up @@ -73,6 +73,11 @@ function getCliOptions (projectPath) {
type: 'string',
default: defaults.url,
describe: 'URL at which Hoodie Server is accessible (e.g. http://myhoodieapp.com)'
},
adminPassword: {
type: 'string',
default: defaults.adminPassword,
describe: 'Password to login to Admin Dashboard. Login is not possible unless set.'
}
})
.help('h', 'Show this help message')
Expand Down
4 changes: 4 additions & 0 deletions cli/parse-options.js
Expand Up @@ -39,5 +39,9 @@ function parseOptions (options) {
config.db.url = options.dbUrl
}

if (options.adminPassword) {
config.adminPassword = options.adminPassword
}

return config
}

0 comments on commit ccaa7da

Please sign in to comment.