Skip to content

Commit

Permalink
feat(enable auto login): add option to install command
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Jun 9, 2021
1 parent b462e24 commit e9dde4e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cli/src/commands/install/enableAutoLogin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports.enableAutoLogin = ({ options, state }) => {
if (!options.enableAutoLogin) return state

return {
...state,
support: [...state.support, 'enableAutoLogin'],
}
}
6 changes: 6 additions & 0 deletions packages/cli/src/commands/install/options.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { enableAutoLogin } = require('./enableAutoLogin.js')
const { registerCommands } = require('./registerCommands.js')
const { setBaseUrl } = require('./setBaseUrl.js')
const { setDataTestPrefix } = require('./setDataTestPrefix.js')
Expand Down Expand Up @@ -62,6 +63,11 @@ const options = [
group: groups.LOGIN,
handler: setLoginBackendUrl,
},
{
name: 'enableAutoLogin',
group: groups.LOGIN,
handler: enableAutoLogin,
},
{
name: 'registerCommands',
group: groups.SUPPORT,
Expand Down

0 comments on commit e9dde4e

Please sign in to comment.