Skip to content

Commit

Permalink
Improve the parsing of Platform.sh CLI commands (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 31, 2022
1 parent 0c0d432 commit a91ace7
Show file tree
Hide file tree
Showing 3 changed files with 1,213 additions and 5 deletions.
5 changes: 4 additions & 1 deletion commands/platformsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ func NewPlatformShCLI() (*platformshCLI, error) {
command.Args = []*console.Arg{
{Name: "anything", Slice: true, Optional: true},
}
command.FlagParsing = console.FlagParsingSkipped
command.Flags = append(command.Flags,
&console.BoolFlag{Name: "no", Aliases: []string{"n"}},
&console.BoolFlag{Name: "yes", Aliases: []string{"y"}},
)
p.Commands = append(p.Commands, command)
}
return p, nil
Expand Down
Loading

0 comments on commit a91ace7

Please sign in to comment.