airshipctl/cmd/completion
Alexander Hughes 8f27532ce0 [#34] Add tests to commands expecting N args
Commands using cobra's ExactArgs feature previously did not have any
validation that the ExactArgs was being enforced. This patchset adds
tests to ensure that in the cases ExactArgs=n, that only n args are
accepted, and other values such as x or y throw an appropriate error.

Change-Id: I27b5774e79db51e0e9bc81d8c207be80811ba459
2020-02-12 14:11:30 +00:00
..
testdata/TestCompletionGoldenOutput [#34] Add tests to commands expecting N args 2020-02-12 14:11:30 +00:00
completion_test.go [#34] Add tests to commands expecting N args 2020-02-12 14:11:30 +00:00
completion.go [#10] Perform early validation of completion cmd 2020-02-11 18:44:05 +00:00