mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
add explicit version to Dockerfile, circleci
This commit is contained in:
6
main.go
6
main.go
@@ -25,6 +25,9 @@ var (
|
||||
func main() {
|
||||
defer panicExit()
|
||||
|
||||
// init global config
|
||||
config.Init()
|
||||
|
||||
// parse command line arguments
|
||||
var versionFlag = flag.Bool("v", false, "output version information and exit")
|
||||
var helpFlag = flag.Bool("h", false, "display this help dialog")
|
||||
@@ -51,9 +54,6 @@ func main() {
|
||||
}
|
||||
defer ui.Close()
|
||||
|
||||
// init global config
|
||||
config.Init()
|
||||
|
||||
// override default config values with command line flags
|
||||
if *filterFlag != "" {
|
||||
config.Update("filterStr", *filterFlag)
|
||||
|
||||
Reference in New Issue
Block a user