mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-03 08:38:52 +00:00
Simplify arguments of flux trace command
It now accepts arguments in the forms <resource>/<name> and <resource> <name> instead of requiring api version and kind as flags. Signed-off-by: Jakob Schrettenbrunner <jakob.schrettenbrunner@telekom.de>
This commit is contained in:
parent
83de469967
commit
b10eee87ee
2 changed files with 113 additions and 39 deletions
|
|
@ -10,7 +10,7 @@ import (
|
|||
func TestTraceNoArgs(t *testing.T) {
|
||||
cmd := cmdTestCase{
|
||||
args: "trace",
|
||||
assert: assertError("object name is required"),
|
||||
assert: assertError("either `<resource>/<name>` or `<resource> <name>` is required as an argument"),
|
||||
}
|
||||
cmd.runTestCmd(t)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue