Skip to content

Commit

Permalink
final release v1.1.9 for Homebrew publication ready.
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Oct 9, 2020
1 parent cf7c79d commit fda0c4e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package main

import (
"fmt"
"github.com/hedzr/awesome-tool"
"github.com/hedzr/awesome-tool/ags"
"github.com/hedzr/cmdr"
Expand Down Expand Up @@ -40,15 +41,6 @@ func Entry() {

func buildRootCmd() (rootCmd *cmdr.RootCommand) {

// To disable internal commands and flags, uncomment the following codes
// cmdr.EnableVersionCommands = false
// cmdr.EnableVerboseCommands = false
// cmdr.EnableCmdrCommands = false
// cmdr.EnableHelpCommands = false
// cmdr.EnableGenerateCommands = false

// daemon.Enable(server.NewDaemon(), modifier, onAppStart, onAppExit)

// root

root := cmdr.Root(awesome_tool.AppName, awesome_tool.Version).
Expand All @@ -58,6 +50,16 @@ func buildRootCmd() (rootCmd *cmdr.RootCommand) {
Examples(examples)
rootCmd = root.RootCommand()

// info

root.NewSubCommand().
Titles("info", "i").
Description("debug information...", ``).
Action(func(cmd *cmdr.Command, args []string) (err error) {
fmt.Printf("'nothing' in config file is: %q\n", cmdr.GetStringR("nothing"))
return
})

// build

buildCmd := root.NewSubCommand().
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const (
// AppName const
AppName = "awesome-tool" // main app-name
// Version const
Version = "1.1.8" // version name
Version = "1.1.9" // version name
// VersionInt const
VersionInt = 0x010108 // using as
VersionInt = 0x010109 // using as
)

// func GetApiPrefix() string {
Expand Down

0 comments on commit fda0c4e

Please sign in to comment.