Commit eb0519b
committed
cephadm: add --dry-run option to cephadm {enter,logs,unit} commands
Add a --dry-run option to the cephadm enter, cephadm logs, and
cephadm unit commands. Like cephadm shell --dry-run, this causes cephadm
to print the command it would have run rather than running said command.
This allows the user to copy and edit or otherwise hack on the output
to make variations on these comands without having to teach cephadm all
the possible options and switches those commands make take.
For instance I can follow recent mgr logging like so:
```
$(/tmp/cephadm logs -i mgr --dry-run | sed 's/ / --since=-1s -f /')
```
Signed-off-by: John Mulligan <[email protected]>1 parent 9149a1e commit eb0519b
1 file changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3171 | 3171 | | |
3172 | 3172 | | |
3173 | 3173 | | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
3174 | 3177 | | |
3175 | 3178 | | |
3176 | 3179 | | |
| |||
3238 | 3241 | | |
3239 | 3242 | | |
3240 | 3243 | | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
3241 | 3248 | | |
3242 | 3249 | | |
3243 | | - | |
| 3250 | + | |
3244 | 3251 | | |
3245 | 3252 | | |
3246 | 3253 | | |
| |||
3260 | 3267 | | |
3261 | 3268 | | |
3262 | 3269 | | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
3263 | 3273 | | |
3264 | 3274 | | |
3265 | 3275 | | |
| |||
4770 | 4780 | | |
4771 | 4781 | | |
4772 | 4782 | | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
| 4786 | + | |
4773 | 4787 | | |
4774 | 4788 | | |
4775 | 4789 | | |
| |||
4818 | 4832 | | |
4819 | 4833 | | |
4820 | 4834 | | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
4821 | 4839 | | |
4822 | 4840 | | |
4823 | 4841 | | |
| |||
4835 | 4853 | | |
4836 | 4854 | | |
4837 | 4855 | | |
| 4856 | + | |
| 4857 | + | |
| 4858 | + | |
| 4859 | + | |
4838 | 4860 | | |
4839 | 4861 | | |
4840 | 4862 | | |
| |||
0 commit comments