refactor: config and remote pkg

This commit is contained in:
2019-02-22 13:08:58 +01:00
parent c437127531
commit d6f41b8105
29 changed files with 247 additions and 1292 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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