Skip to content

Commit 5345947

Browse files
committed
fix #30
1 parent 0ab18e9 commit 5345947

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ this repository has new commits, Pico will automatically reconfigure.`,
4040
Flags: []cli.Flag{
4141
cli.StringFlag{Name: "hostname", EnvVar: "HOSTNAME"},
4242
cli.StringFlag{Name: "directory", EnvVar: "DIRECTORY", Value: "./cache/"},
43-
cli.BoolFlag{Name: "no-ssh", EnvVar: "NO_SSH"},
43+
cli.BoolFlag{Name: "ssh", EnvVar: "SSH"},
4444
cli.DurationFlag{Name: "check-interval", EnvVar: "CHECK_INTERVAL", Value: time.Second * 10},
4545
cli.StringFlag{Name: "vault-addr", EnvVar: "VAULT_ADDR"},
4646
cli.StringFlag{Name: "vault-token", EnvVar: "VAULT_TOKEN"},
@@ -71,7 +71,7 @@ this repository has new commits, Pico will automatically reconfigure.`,
7171
Target: c.Args().First(),
7272
Hostname: hostname,
7373
Directory: c.String("directory"),
74-
NoSSH: c.Bool("no-ssh"),
74+
SSH: c.Bool("ssh"),
7575
CheckInterval: c.Duration("check-interval"),
7676
VaultAddress: c.String("vault-addr"),
7777
VaultToken: c.String("vault-token"),

service/service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
type Config struct {
2828
Target string
2929
Hostname string
30-
NoSSH bool
30+
SSH bool
3131
Directory string
3232
CheckInterval time.Duration
3333
VaultAddress string
@@ -52,7 +52,7 @@ func Initialise(c Config) (app *App, err error) {
5252
app.config = c
5353

5454
var authMethod transport.AuthMethod
55-
if !c.NoSSH {
55+
if c.SSH {
5656
authMethod, err = ssh.NewSSHAgentAuth("git")
5757
if err != nil {
5858
return nil, errors.Wrap(err, "failed to set up SSH authentication")

0 commit comments

Comments
 (0)