From 2b1440f22897914c4a1836de8dd0c64972e10650 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Jul 2022 22:56:40 +0530 Subject: removed copyright notice and other messages from rootcmd --- cmd/root.go | 21 ++++++--------------- cmd/version.go | 2 +- 2 files changed, 7 insertions(+), 16 deletions(-) (limited to 'cmd') diff --git a/cmd/root.go b/cmd/root.go index 085dafa..c1e939c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -24,23 +24,15 @@ import ( "github.com/spf13/cobra" ) -var queryOnlyMode bool -var mangaMode bool +var ( + queryOnlyMode , mangaMode bool + entryId int +) var rootCmd = &cobra.Command{ Use: "macli", Short: "macli - Unofficial CLI-Based MyAnimeList Client.", - Long: "macli is an unofficial MyAnimeClient for use inside the terminal.\n" + - "\n" + - "\x1b[34mmacli Copyright (C) 2022 Vidhu Kant Sharma \n" + - "This program comes with ABSOLUTELY NO WARRANTY;\n" + - "This is free software, and you are welcome to redistribute it\n" + - "under certain conditions; For details refer to the GNU General Public License.\n" + - "You should have received a copy of the GNU General Public License\n" + - "along with this program. If not, see .\x1b[0m\n" + - "\n" + - "\x1b[35mPlease report any bugs on the GitHub page: https://github.com/MikunoNaka/macli\n" + - "or through email: vidhukant@vidhukant.xyz\x1b[0m\n", + Long: "macli is an unofficial MyAnimeClient for use inside the terminal.", } func Execute() { @@ -51,6 +43,5 @@ func Execute() { } func init() { - rootCmd.PersistentFlags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") - rootCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") + rootCmd.PersistentFlags().IntVar(&entryId, "id", -1, "Manually specify the ID of anime/manga (overrides search)") } diff --git a/cmd/version.go b/cmd/version.go index c89866b..54391fc 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -24,7 +24,7 @@ import ( "github.com/spf13/cobra" ) -var version string = "v1.5.4" +var version string = "v1.6.0" var versionCmd = &cobra.Command { Use: "version", -- cgit v1.2.3