refactor: config and remote pkg
This commit is contained in:
@ -10,9 +10,10 @@ import (
|
||||
var enabled bool
|
||||
|
||||
var addRemoteCmd = &cobra.Command{
|
||||
Use: "add",
|
||||
Short: "Add Remove Server",
|
||||
Args: cobra.ExactArgs(2),
|
||||
Use: "add",
|
||||
Short: "Add Remote Server",
|
||||
Args: cobra.ExactArgs(2),
|
||||
Example: "flucky remote add origin https://example.local",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
// read configuration
|
||||
|
@ -8,9 +8,10 @@ import (
|
||||
)
|
||||
|
||||
var disableRemoteCmd = &cobra.Command{
|
||||
Use: "disable",
|
||||
Short: "Disable Remove Server",
|
||||
Args: cobra.ExactArgs(1),
|
||||
Use: "disable",
|
||||
Short: "Disable Remove Server",
|
||||
Args: cobra.ExactArgs(1),
|
||||
Example: "flucky remote disable origin",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
// read configuration
|
||||
|
@ -8,9 +8,10 @@ import (
|
||||
)
|
||||
|
||||
var enableRemoteCmd = &cobra.Command{
|
||||
Use: "enable",
|
||||
Short: "Enable Remove Server",
|
||||
Args: cobra.ExactArgs(1),
|
||||
Use: "enable",
|
||||
Short: "Enable Remove Server",
|
||||
Args: cobra.ExactArgs(1),
|
||||
Example: "flucky remote enable origin",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
// read configuration
|
||||
|
@ -11,9 +11,10 @@ import (
|
||||
var quiet bool
|
||||
|
||||
var listRemoteCmd = &cobra.Command{
|
||||
Use: "list",
|
||||
Use: "ls",
|
||||
Short: "List Remove Servers",
|
||||
Aliases: []string{"ls"},
|
||||
Aliases: []string{"list"},
|
||||
Example: "flucky remote ls",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
// read configuration
|
||||
|
@ -12,6 +12,7 @@ var rmRemoteCmd = &cobra.Command{
|
||||
Short: "Remove Remote Server",
|
||||
Aliases: []string{"remove"},
|
||||
Args: cobra.ExactArgs(1),
|
||||
Example: "flucky remote rm origin",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
// read configuration
|
||||
|
Reference in New Issue
Block a user