Change airshipadm to airshipctl
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user