Change airshipadm to airshipctl

This commit is contained in:
Ian Howell
2019-05-07 10:07:54 -05:00
parent 2880bea640
commit 7a34fd98d9
16 changed files with 43 additions and 43 deletions

View File

@@ -4,13 +4,13 @@ import (
"io"
"log"
"github.com/ian-howell/airshipadm/pkg/environment"
"github.com/ian-howell/airshipctl/pkg/environment"
)
var debug = false
// Init initializes settings related to logging
func Init(settings *environment.AirshipADMSettings, out io.Writer) {
func Init(settings *environment.AirshipCTLSettings, out io.Writer) {
debug = settings.Debug
log.SetOutput(out)
}

View File

@@ -5,8 +5,8 @@ import (
"strings"
"testing"
"github.com/ian-howell/airshipadm/pkg/environment"
"github.com/ian-howell/airshipadm/pkg/log"
"github.com/ian-howell/airshipctl/pkg/environment"
"github.com/ian-howell/airshipctl/pkg/log"
)
const notEqualFmt = `Output does not match expected
@@ -14,7 +14,7 @@ GOT: %v
Expected: %v`
func TestLoggingWithoutDebug(t *testing.T) {
settings := environment.AirshipADMSettings{
settings := environment.AirshipCTLSettings{
Debug: false,
}
@@ -55,7 +55,7 @@ func TestLoggingWithoutDebug(t *testing.T) {
}
func TestLoggingWithDebug(t *testing.T) {
settings := environment.AirshipADMSettings{
settings := environment.AirshipCTLSettings{
Debug: true,
}