git fmting
This commit is contained in:
@@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"github.com/edindazdarevic/confighub/chub/client"
|
"github.com/edindazdarevic/confighub/chub/client"
|
||||||
"github.com/edindazdarevic/confighub/chub/globals"
|
"github.com/edindazdarevic/confighub/chub/globals"
|
||||||
homedir "github.com/mitchellh/go-homedir"
|
homedir "github.com/mitchellh/go-homedir"
|
||||||
@@ -9,7 +10,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"fmt"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func initCommand(guid string) {
|
func initCommand(guid string) {
|
||||||
@@ -22,7 +22,7 @@ func initCommand(guid string) {
|
|||||||
machineToInitialize := client.Machine{hostname, runtime.GOOS, runtime.GOARCH, guid}
|
machineToInitialize := client.Machine{hostname, runtime.GOOS, runtime.GOARCH, guid}
|
||||||
finishedOk := client.Init(&machineToInitialize)
|
finishedOk := client.Init(&machineToInitialize)
|
||||||
|
|
||||||
if (finishedOk) {
|
if finishedOk {
|
||||||
fmt.Printf("Successfuly initialized the machine with id %v\n", guid)
|
fmt.Printf("Successfuly initialized the machine with id %v\n", guid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user