Commit 1f02d34
Fix diff command to use provided stage arguments in shell
The diff command was ignoring positional stage arguments (e.g., "diff staging production")
and using the current context stage instead. This made it impossible to compare
different stages in the interactive shell.
Fixed by adding special handling in KeepProxyCommand for the diff command:
- Positional arguments are now treated as stage names
- Stages are converted to --stage=stage1,stage2 format
- "unmask" is still recognized as a boolean flag
Now the shell properly supports:
- diff staging production
- diff staging production unmask
- diff local staging production
This matches the documented behavior and user expectations.
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>1 parent 9bd9621 commit 1f02d34
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
80 | 97 | | |
81 | 98 | | |
82 | 99 | | |
| |||
92 | 109 | | |
93 | 110 | | |
94 | 111 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 112 | | |
99 | 113 | | |
100 | 114 | | |
| |||
0 commit comments