2018-11-19 21:36:21 +00:00
|
|
|
package remote
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"git.cryptic.systems/fh-trier/go-flucky/pkg/remote"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
var listRemoteCmd = &cobra.Command{
|
|
|
|
Use: "list",
|
2018-11-21 19:48:10 +00:00
|
|
|
Short: "List Remove Servers",
|
2018-11-19 21:36:21 +00:00
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
|
|
|
|
if err := remote.List(os.Stdout, configDir); err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
remoteCmd.AddCommand(listRemoteCmd)
|
|
|
|
}
|