Commit d7f0e29
wryyyds7
fix: allow -t flag to be used independently in compose run
Previously, -t (tty) was not available as a standalone flag in
'nerdctl compose run' — it was hardcoded to follow -i (interactive).
This meant users could not allocate a TTY without also enabling
STDIN, and any use of -t or --tty would result in 'unknown flag'.
This change:
- Adds a standalone -t/--tty flag to 'compose run'
- Removes the restriction that StdinOpen and Tty must be equal
- Allows -i and -t to be specified independently
Ref: #1604
Signed-off-by: wryyyds7 <wry@code.alipay.com>1 parent 4381782 commit d7f0e29
2 files changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
140 | 137 | | |
141 | 138 | | |
142 | 139 | | |
| |||
0 commit comments