We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab18e9 commit 5345947Copy full SHA for 5345947
main.go
@@ -40,7 +40,7 @@ this repository has new commits, Pico will automatically reconfigure.`,
40
Flags: []cli.Flag{
41
cli.StringFlag{Name: "hostname", EnvVar: "HOSTNAME"},
42
cli.StringFlag{Name: "directory", EnvVar: "DIRECTORY", Value: "./cache/"},
43
- cli.BoolFlag{Name: "no-ssh", EnvVar: "NO_SSH"},
+ cli.BoolFlag{Name: "ssh", EnvVar: "SSH"},
44
cli.DurationFlag{Name: "check-interval", EnvVar: "CHECK_INTERVAL", Value: time.Second * 10},
45
cli.StringFlag{Name: "vault-addr", EnvVar: "VAULT_ADDR"},
46
cli.StringFlag{Name: "vault-token", EnvVar: "VAULT_TOKEN"},
@@ -71,7 +71,7 @@ this repository has new commits, Pico will automatically reconfigure.`,
71
Target: c.Args().First(),
72
Hostname: hostname,
73
Directory: c.String("directory"),
74
- NoSSH: c.Bool("no-ssh"),
+ SSH: c.Bool("ssh"),
75
CheckInterval: c.Duration("check-interval"),
76
VaultAddress: c.String("vault-addr"),
77
VaultToken: c.String("vault-token"),
service/service.go
@@ -27,7 +27,7 @@ import (
27
type Config struct {
28
Target string
29
Hostname string
30
- NoSSH bool
+ SSH bool
31
Directory string
32
CheckInterval time.Duration
33
VaultAddress string
@@ -52,7 +52,7 @@ func Initialise(c Config) (app *App, err error) {
52
app.config = c
53
54
var authMethod transport.AuthMethod
55
- if !c.NoSSH {
+ if c.SSH {
56
authMethod, err = ssh.NewSSHAgentAuth("git")
57
if err != nil {
58
return nil, errors.Wrap(err, "failed to set up SSH authentication")
0 commit comments