Adds a watch flag to the get command
The new flag fetch and display the request ressource and then continue watching the ressource until timeout or cancellation. A single ressource/ressource type is supported. Signed-off-by: Soule BA <soule@weave.works>
This commit is contained in:
@@ -36,7 +36,12 @@ var getAllCmd = &cobra.Command{
|
||||
# List all resources in all namespaces
|
||||
flux get all --all-namespaces`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
err := getSourceAllCmd.RunE(cmd, args)
|
||||
err := validateWatchOption(cmd, "all")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = getSourceAllCmd.RunE(cmd, args)
|
||||
if err != nil {
|
||||
logError(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user