-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use viper and configurable flags (#90)
* use viper * remove unused app.Parser * refactor: combine continuous variables * Revert "use viper" This reverts commit 2d3005c. * refactor: merge app and cmd/gogh(main) package * make flags be configurable * configurable flags * fix save with input
- Loading branch information
Showing
27 changed files
with
825 additions
and
667 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/kyoh86/gogh/v2/app" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var bundleCommand = &cobra.Command{ | ||
Use: "bundle", | ||
Short: "Manage bundle", | ||
PersistentPostRunE: func(*cobra.Command, []string) error { | ||
return app.SaveServers() | ||
return saveServers() | ||
}, | ||
} | ||
|
||
func init() { | ||
setup() | ||
facadeCommand.AddCommand(bundleCommand) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.