Skip to content

Commit

Permalink
#2: first pass on support for lando setup part 5
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Nov 6, 2023
1 parent 0ac6686 commit be23e53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pr-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ jobs:
- disable
- disabled
- lando setup -y
- lando setup --skip-common-plugins --plugins @lando/node --orchestrator 2.21.0 -y
- lando setup --skip-common-plugins --plugin @lando/node --orchestrator 2.21.0 -y
# these will fail
- lando.dev something
- oihywpihgklnw


steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
4 changes: 3 additions & 1 deletion lib/parse-setup-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ module.exports = command => {
// parse string
command = parseArgsStringToArgv(command);
// validate a few things
if (command[0] !== 'lando' || command[1] !== 'setup') throw new Error('Setup command must begin with "lando setup"!');
if (command[0] !== 'lando' || command[1] !== 'setup') {
throw new Error(`Setup command must begin with "lando setup"! You tried to run ${command.join(' ')}`);
}
// remove first lando because we only care about the args
command.shift();
return command;
Expand Down

0 comments on commit be23e53

Please sign in to comment.