1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-05 09:48:36 +01:00

Update build for windows

This commit is contained in:
Dan Ramich
2018-03-05 10:01:13 -07:00
committed by Craig Jellick
parent 4fcbd64fcb
commit affecc3df0
9 changed files with 12 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.9.3
FROM golang:1.9.4
RUN apt-get update && \
apt-get install -y xz-utils zip rsync
RUN go get github.com/rancher/trash

View File

@@ -23,8 +23,8 @@ func promptAction(ctx *cli.Context) error {
fmt.Print("rancher cli auto-completion mode")
defer fmt.Println("Goodbye!")
p := prompt.New(
rancherPrompt.Executor,
rancherPrompt.Completer,
rancherprompt.Executor,
rancherprompt.Completer,
prompt.OptionTitle("rancher-prompt: interactive rancher client"),
prompt.OptionPrefix("rancher$ "),
prompt.OptionInputTextColor(prompt.Yellow),

View File

@@ -77,10 +77,10 @@ func mainErr() error {
cmd.SSHCommand(),
}
for _, com := range app.Commands {
rancherPrompt.Commands[com.Name] = com
rancherPrompt.Commands[com.ShortName] = com
rancherprompt.Commands[com.Name] = com
rancherprompt.Commands[com.ShortName] = com
}
rancherPrompt.Flags = app.Flags
rancherprompt.Flags = app.Flags
parsed, err := parseArgs(os.Args)
if err != nil {
logrus.Error(err)

View File

@@ -1,4 +1,4 @@
FROM alpine:3.5
FROM alpine:3.7
RUN apk add --no-cache ca-certificates openssh-client
COPY rancher /usr/bin/
WORKDIR /mnt

View File

@@ -1 +1 @@
package rancherPrompt
package rancherprompt

View File

@@ -1,4 +1,4 @@
package rancherPrompt
package rancherprompt
import (
"strings"

View File

@@ -1,4 +1,4 @@
package rancherPrompt
package rancherprompt
import (
"fmt"

View File

@@ -1,4 +1,4 @@
package rancherPrompt
package rancherprompt
import (
"strings"

View File

@@ -6,7 +6,7 @@ cd $(dirname $0)/..
declare -A OS_ARCH_ARG
OS_PLATFORM_ARG=(linux darwin)
OS_PLATFORM_ARG=(linux windows darwin)
OS_ARCH_ARG[linux]="amd64 arm"
OS_ARCH_ARG[windows]="386 amd64"
OS_ARCH_ARG[darwin]="amd64"