This repository was archived by the owner on Jan 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 55require (
66 github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4
77 github.com/pkg/errors v0.8.1 // indirect
8+ github.com/spf13/pflag v1.0.3
89 github.com/stretchr/testify v1.3.0
9- go.coder.com/cli v0.1 .0
10+ go.coder.com/cli v0.4 .0
1011 go.coder.com/flog v0.0.0-20190129195112-eaed154a0db8
1112 go.coder.com/retry v0.0.0-20180926062817-cf12c95974ac
1213 golang.org/x/crypto v0.0.0-20190422183909-d864b10871cd
Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
1313github.com/pkg/errors v0.8.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
1414github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
1515github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
16+ github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg =
17+ github.com/spf13/pflag v1.0.3 /go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4 =
1618github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
1719github.com/stretchr/testify v1.1.4 /go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs =
1820github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q =
1921github.com/stretchr/testify v1.3.0 /go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI =
20- go.coder.com/cli v0.1 .0 h1:ZAjpjXJxMnwj1TqXUi7nnXXuxiPRfwfoC2kViN93oMM =
21- go.coder.com/cli v0.1 .0 /go.mod h1:pbVagI9YH/HHMManxPFML4P527GDREwsb+yciZ7mtB8 =
22+ go.coder.com/cli v0.4 .0 h1:PruDGwm/CPFndyK/eMowZG3vzg5CgohRWeXWCTr3zi8 =
23+ go.coder.com/cli v0.4 .0 /go.mod h1:hRTOURCR3LJF1FRW9arecgrzX+AHG7mfYMwThPIgq+w =
2224go.coder.com/flog v0.0.0-20190129195112-eaed154a0db8 h1:PtQ3moPi4EAz3cyQhkUs1IGIXa2QgJpP60yMjOdu0kk =
2325go.coder.com/flog v0.0.0-20190129195112-eaed154a0db8 /go.mod h1:83JsYgXYv0EOaXjIMnaZ1Fl6ddNB3fJnDZ/8845mUJ8 =
2426go.coder.com/retry v0.0.0-20180926062817-cf12c95974ac h1:ekdpsuykRy/E+SDq5BquFomNhRCk8OOyhtnACW9Bi50 =
Original file line number Diff line number Diff line change 11package main
22
33import (
4- "flag"
54 "fmt"
65 "math/rand"
76 "os"
87 "strings"
98 "time"
109
10+ "github.com/spf13/pflag"
11+
1112 "go.coder.com/cli"
1213 "go.coder.com/flog"
1314)
@@ -50,7 +51,7 @@ func (c *rootCmd) Spec() cli.CommandSpec {
5051 }
5152}
5253
53- func (c * rootCmd ) RegisterFlags (fl * flag .FlagSet ) {
54+ func (c * rootCmd ) RegisterFlags (fl * pflag .FlagSet ) {
5455 fl .BoolVar (& c .skipSync , "skipsync" , false , "skip syncing local settings and extensions to remote host" )
5556 fl .BoolVar (& c .syncBack , "b" , false , "sync extensions back on termination" )
5657 fl .BoolVar (& c .printVersion , "version" , false , "print version information and exit" )
@@ -59,7 +60,7 @@ func (c *rootCmd) RegisterFlags(fl *flag.FlagSet) {
5960 fl .StringVar (& c .sshFlags , "ssh-flags" , "" , "custom SSH flags" )
6061}
6162
62- func (c * rootCmd ) Run (fl * flag .FlagSet ) {
63+ func (c * rootCmd ) Run (fl * pflag .FlagSet ) {
6364 if c .printVersion {
6465 fmt .Printf ("%v\n " , version )
6566 os .Exit (0 )
You can’t perform that action at this time.
0 commit comments