-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
173 additions
and
73 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
src/cli/actions/hub/login.js → src/cli/actions/ext/hub/login.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/cli/actions/hub/logout.js → src/cli/actions/ext/hub/logout.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
src/cli/actions/hub/open.js → src/cli/actions/ext/hub/open.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/cli/actions/hub/status.js → src/cli/actions/ext/hub/status.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/cli/actions/hub/token.js → src/cli/actions/ext/hub/token.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
const { Command } = require('commander') | ||
|
||
const store = require('./../../../shared/store') | ||
const { logger } = require('./../../../shared/logger') | ||
|
||
const hub = new Command('hub') | ||
|
||
hub | ||
.description('DEPRECATED: to be replaced by [dotenvx pro]') | ||
|
||
const loginAction = require('./../../actions/ext/hub/login') | ||
hub | ||
.command('login') | ||
.description('authenticate to dotenvx hub') | ||
.option('-h, --hostname <url>', 'set hostname', store.getHostname()) | ||
.action(function (...args) { | ||
logger.warn('DEPRECATION NOTICE: to be replaced by [dotenvx pro]') | ||
|
||
loginAction.apply(this, args) | ||
}) | ||
|
||
const pushAction = require('./../../actions/ext/hub/push') | ||
hub | ||
.command('push') | ||
.description('push .env.keys to dotenvx hub') | ||
.argument('[directory]', 'directory to push', '.') | ||
.option('-h, --hostname <url>', 'set hostname', store.getHostname()) | ||
.action(function (...args) { | ||
logger.warn('DEPRECATION NOTICE: to be replaced by [dotenvx pro]') | ||
|
||
pushAction.apply(this, args) | ||
}) | ||
|
||
const pullAction = require('./../../actions/ext/hub/pull') | ||
hub | ||
.command('pull') | ||
.description('pull .env.keys from dotenvx hub') | ||
.argument('[directory]', 'directory to pull', '.') | ||
.option('-h, --hostname <url>', 'set hostname', store.getHostname()) | ||
.action(function (...args) { | ||
logger.warn('DEPRECATION NOTICE: to be replaced by [dotenvx pro]') | ||
|
||
pullAction.apply(this, args) | ||
}) | ||
|
||
const openAction = require('./../../actions/ext/hub/open') | ||
hub | ||
.command('open') | ||
.description('view repository on dotenvx hub') | ||
.option('-h, --hostname <url>', 'set hostname', store.getHostname()) | ||
.action(function (...args) { | ||
logger.warn('DEPRECATION NOTICE: to be replaced by [dotenvx pro]') | ||
|
||
openAction.apply(this, args) | ||
}) | ||
|
||
const tokenAction = require('./../../actions/ext/hub/token') | ||
hub | ||
.command('token') | ||
.description('print the auth token dotenvx hub is configured to use') | ||
.option('-h, --hostname <url>', 'set hostname', 'https://hub.dotenvx.com') | ||
.action(function (...args) { | ||
logger.warn('DEPRECATION NOTICE: to be replaced by [dotenvx pro]') | ||
|
||
tokenAction.apply(this, args) | ||
}) | ||
|
||
const statusAction = require('./../../actions/ext/hub/status') | ||
hub | ||
.command('status') | ||
.description('display logged in user') | ||
.action(function (...args) { | ||
logger.warn('DEPRECATION NOTICE: to be replaced by [dotenvx pro]') | ||
|
||
statusAction.apply(this, args) | ||
}) | ||
|
||
const logoutAction = require('./../../actions/ext/hub/logout') | ||
hub | ||
.command('logout') | ||
.description('log out this machine from dotenvx hub') | ||
.option('-h, --hostname <url>', 'set hostname', store.getHostname()) | ||
.action(function (...args) { | ||
logger.warn('DEPRECATION NOTICE: to be replaced by [dotenvx pro]') | ||
|
||
logoutAction.apply(this, args) | ||
}) | ||
|
||
module.exports = hub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters