Skip to content

Commit

Permalink
✨ Export CLI commands (#130)
Browse files Browse the repository at this point in the history
Allows for invoking commands via Node scripts without needing to invoke a subprocess.
  • Loading branch information
Wil Wilsman authored Jan 7, 2021
1 parent 287fc74 commit 59f0e97
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion packages/cli-build/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export default {};
const { Finalize } = require('./commands/build/finalize');
const { Wait } = require('./commands/build/wait');

module.exports = { Finalize, Wait };
6 changes: 5 additions & 1 deletion packages/cli-config/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export default {};
const { Create } = require('./commands/config/create');
const { Migrate } = require('./commands/build/migrate');
const { Validate } = require('./commands/build/validate');

module.exports = { Create, Migrate, Validate };
10 changes: 9 additions & 1 deletion packages/cli-exec/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
export default {};
const { Exec } = require('./commands/exec');
const { Ping } = require('./commands/exec/ping');
const { Start } = require('./commands/exec/start');
const { Stop } = require('./commands/exec/stop');

module.exports = Exec;
module.exports.Ping = Ping;
module.exports.Start = Start;
module.exports.Stop = Stop;
2 changes: 1 addition & 1 deletion packages/cli-snapshot/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default {};
module.exports = require('./commands/snapshot').Snapshot;
2 changes: 1 addition & 1 deletion packages/cli-upload/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default {};
module.exports = require('./commands/upload').Upload;

0 comments on commit 59f0e97

Please sign in to comment.