From 5593cd0b39f284ca8776326af747e0c06bcc9223 Mon Sep 17 00:00:00 2001 From: t-dedah Date: Mon, 13 Jun 2022 11:28:07 +0530 Subject: [PATCH] minor correction --- cmd/delete.go | 4 ++-- cmd/list.go | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/delete.go b/cmd/delete.go index 749776d..b926eb2 100644 --- a/cmd/delete.go +++ b/cmd/delete.go @@ -8,8 +8,8 @@ import ( func init() { rootCmd.AddCommand(deleteCmd) - rootCmd.Flags().StringP("repo", "R", "", "Select another repository for finding actions cache.") - rootCmd.Flags().StringP("branch", "B", "", "Filter by branch") + deleteCmd.Flags().StringP("repo", "R", "", "Select another repository for finding actions cache.") + deleteCmd.Flags().StringP("branch", "B", "", "Filter by branch") deleteCmd.SetHelpTemplate(getDeleteHelp()) } diff --git a/cmd/list.go b/cmd/list.go index eafcf49..8fabaca 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -8,11 +8,11 @@ import ( func init() { rootCmd.AddCommand(listCmd) - rootCmd.Flags().StringP("repo", "R", "", "Select another repository for finding actions cache.") - rootCmd.Flags().StringP("branch", "B", "", "Filter by branch") - rootCmd.Flags().StringP("key", "", "", "Filter by key") - rootCmd.Flags().StringP("order", "", "", "Order of caches returned (asc/desc)") - rootCmd.Flags().StringP("sort", "", "", "Sort fetched caches (used/size/created)") + listCmd.Flags().StringP("repo", "R", "", "Select another repository for finding actions cache.") + listCmd.Flags().StringP("branch", "B", "", "Filter by branch") + listCmd.Flags().StringP("key", "", "", "Filter by key") + listCmd.Flags().StringP("order", "", "", "Order of caches returned (asc/desc)") + listCmd.Flags().StringP("sort", "", "", "Sort fetched caches (used/size/created)") listCmd.SetHelpTemplate(getListHelp()) }