PKGBUILD/cmd/remote/list.go

25 lines
396 B
Go
Raw Normal View History

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) {
2018-11-28 17:07:20 +00:00
if err := remote.Print(os.Stdout, configDir); err != nil {
2018-11-19 21:36:21 +00:00
log.Fatal(err)
}
},
}
func init() {
remoteCmd.AddCommand(listRemoteCmd)
}