fix: renamed packages

This commit is contained in:
2018-11-21 20:48:10 +01:00
parent 6d9368e86c
commit 1672663944
15 changed files with 206 additions and 121 deletions

View File

@ -10,7 +10,7 @@ import (
var addRemoteCmd = &cobra.Command{
Use: "add",
Short: "add",
Short: "Add Remove Server",
Args: cobra.ExactArgs(2),
Run: func(cmd *cobra.Command, args []string) {

View File

@ -10,7 +10,7 @@ import (
var listRemoteCmd = &cobra.Command{
Use: "list",
Short: "list",
Short: "List Remove Servers",
Run: func(cmd *cobra.Command, args []string) {
if err := remote.List(os.Stdout, configDir); err != nil {

View File

@ -3,7 +3,7 @@ package remote
import (
"log"
"git.cryptic.systems/fh-trier/go-flucky/pkg/remote"
"git.cryptic.systems/fh-trier/go-flucky/pkg/httpcall"
"github.com/spf13/cobra"
)
@ -14,7 +14,7 @@ var registerRemoteCmd = &cobra.Command{
Short: "register on remote servers",
Run: func(cmd *cobra.Command, args []string) {
if err := remote.RegisterDevice(configDir, force); err != nil {
if err := httpcall.RegisterDevice(configDir, force); err != nil {
log.Fatal(err)
}
},

View File

@ -8,7 +8,7 @@ var configDir string
var remoteCmd = &cobra.Command{
Use: "remote",
Short: "Manage Remote",
Short: "Manage Remote Server",
}
func InitCmd(cmd *cobra.Command, cnf string) {

View File

@ -9,9 +9,9 @@ import (
var all bool
var removeRemoteCmd = &cobra.Command{
Use: "remove",
Short: "remove",
var rmRemoteCmd = &cobra.Command{
Use: "rm",
Short: "Remove Remote Server",
Args: cobra.RangeArgs(0, 1),
Run: func(cmd *cobra.Command, args []string) {
@ -28,6 +28,6 @@ var removeRemoteCmd = &cobra.Command{
}
func init() {
remoteCmd.AddCommand(removeRemoteCmd)
removeRemoteCmd.Flags().BoolVarP(&all, "all", "a", false, "Select all remote connections")
remoteCmd.AddCommand(rmRemoteCmd)
rmRemoteCmd.Flags().BoolVarP(&all, "all", "a", false, "Select all remote connections")
}