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:
committed by
Craig Jellick
parent
4fcbd64fcb
commit
affecc3df0
@@ -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
|
||||
|
||||
@@ -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),
|
||||
|
||||
6
main.go
6
main.go
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
package rancherPrompt
|
||||
package rancherprompt
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package rancherPrompt
|
||||
package rancherprompt
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package rancherPrompt
|
||||
package rancherprompt
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package rancherPrompt
|
||||
package rancherprompt
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user