From d11a35a6051e34298b9b6abcf23fbdc331495b47 Mon Sep 17 00:00:00 2001 From: t-dedah Date: Mon, 13 Jun 2022 11:40:06 +0530 Subject: [PATCH] desc corrections --- cmd/delete.go | 6 +++--- cmd/list.go | 6 +++--- cmd/root.go | 1 - go.mod | 2 +- main.go | 6 +----- 5 files changed, 8 insertions(+), 13 deletions(-) diff --git a/cmd/delete.go b/cmd/delete.go index b926eb2..f7d065c 100644 --- a/cmd/delete.go +++ b/cmd/delete.go @@ -15,8 +15,8 @@ func init() { var deleteCmd = &cobra.Command{ Use: "delete", - Short: "Print the version number of Hugo", - Long: `All software has versions. This is Hugo's`, + Short: "Delete cache by key", + Long: `Delete cache by key`, Run: func(cmd *cobra.Command, args []string) { repo, _ := cmd.Flags().GetString("repo") branch, _ := cmd.Flags().GetString("branch") @@ -31,7 +31,7 @@ func getDeleteHelp() string { gh-actions-cache: Works with GitHub Actions Cache. USAGE: - gh actions-cache lisy [flags] + gh actions-cache delete [flags] ARGUMENTS: key cache key which needs to be deleted diff --git a/cmd/list.go b/cmd/list.go index 8fabaca..39e8ddd 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -18,8 +18,8 @@ func init() { var listCmd = &cobra.Command{ Use: "list", - Short: "Print the version number of Hugo", - Long: `All software has versions. This is Hugo's`, + Short: "Lists the actions cache", + Long: `Lists the actions cache`, Run: func(cmd *cobra.Command, args []string) { repo, _ := cmd.Flags().GetString("repo") branch, _ := cmd.Flags().GetString("branch") @@ -40,7 +40,7 @@ func getListHelp() string { gh-actions-cache: Works with GitHub Actions Cache. USAGE: - gh actions-cache lisy [flags] + gh actions-cache list [flags] ARGUMENTS: No Arguments diff --git a/cmd/root.go b/cmd/root.go index c5ceb21..eb3344b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -21,7 +21,6 @@ func Execute() { } func init() { - rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") rootCmd.SetHelpTemplate(getRootHelp()) } diff --git a/go.mod b/go.mod index d3516e7..bcc2aad 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/t-dedah/gh-actions-cache +module github.com/actions/gh-actions-cache go 1.18 diff --git a/main.go b/main.go index 563a7ad..997da92 100644 --- a/main.go +++ b/main.go @@ -1,10 +1,6 @@ -/* -Copyright © 2022 NAME HERE - -*/ package main -import "github.com/t-dedah/gh-actions-cache/cmd" +import "github.com/actions/gh-actions-cache/cmd" func main() { cmd.Execute()