Skip to content

Commit

Permalink
Merge pull request #162 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Code refactoring
  • Loading branch information
andyone authored Dec 6, 2023
2 parents 162b7cd + 7569bd0 commit 184a257
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ var categorySize = map[string]int{
index.CATEGORY_OTHER: 0,
}

var colorTagApp string
var colorTagVer string
var colorTagApp, colorTagVer string

var useRawOutput = false
var noProgress = false
Expand Down
3 changes: 1 addition & 2 deletions clone/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ var optMap = options.Map{
OPT_GENERATE_MAN: {Type: options.BOOL},
}

var colorTagApp string
var colorTagVer string
var colorTagApp, colorTagVer string

// ////////////////////////////////////////////////////////////////////////////////// //

Expand Down
8 changes: 6 additions & 2 deletions gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ var optMap = options.Map{

var variations = []string{"railsexpress", "jemalloc"}

var colorTagApp string
var colorTagVer string
var colorTagApp, colorTagVer string

// ////////////////////////////////////////////////////////////////////////////////// //

Expand Down Expand Up @@ -597,6 +596,11 @@ func genAbout(gitRev string) *usage.About {
Version: VER,
Desc: DESC,
Year: 2006,

AppNameColorTag: colorTagApp,
VersionColorTag: colorTagVer,
DescSeparator: "{s}—{!}",

Owner: "ESSENTIAL KAOS",
License: "Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>",
}
Expand Down

0 comments on commit 184a257

Please sign in to comment.