Skip to content

Commit

Permalink
Fix support for shortcut names on psh commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 21, 2022
1 parent becd142 commit 3d0e098
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/platformsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ func (p *platformshCLI) proxyPSHCmd(commandName string) console.ActionFunc {

args := os.Args[1:]
for i := range args {
for _, name := range c.Command.Names() {
args[i] = strings.Replace(args[i], name, commandName, 1)
if args[i] == c.Command.UserName {
args[i] = commandName
break
}
}
e := p.executor(args)
Expand Down

0 comments on commit 3d0e098

Please sign in to comment.