Skip to content

Commit

Permalink
Fixed bug when running setup, rollout, stabilize or destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
davemoore- committed May 18, 2022
1 parent 2acdfec commit f7573a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microbs.io/cli",
"version": "0.2.13",
"version": "0.2.14",
"description": "microservices observability",
"license": "Apache-2.0",
"url": "https://microbs.io",
Expand Down
11 changes: 6 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ module.exports.run = async () => {
// persist them in the global context object.
args.parse()

// Run the command.
// Prepare the config, apps, and plugins for operational commands.
switch (context.get('command')) {

// Prepare the config, apps, and plugins for operational commands.
// Don't break the switch yet after completion.
case 'setup':
case 'rollout':
case 'stabilize':
Expand All @@ -41,7 +38,11 @@ module.exports.run = async () => {
config.init()
apps.load()
plugins.load()

break
}

// Run the command.
switch (context.get('command')) {
case 'setup':
return await commands.setup.run()
case 'rollout':
Expand Down

0 comments on commit f7573a4

Please sign in to comment.