Skip to content

Commit

Permalink
chore: fix english typo
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jan 10, 2019
1 parent d008e0a commit 82ab858
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli/cmd_airtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (cmd *airtableCommand) ParseFlags(flags *pflag.FlagSet) {
flags.BoolVarP(&cmd.opts.DestroyInvalidRecords, "airtable-destroy-invalid-records", "", false, "Destroy invalid records")

if err := viper.BindPFlags(flags); err != nil {
zap.L().Warn("find to bind flags using Viper", zap.Error(err))
zap.L().Warn("failed to bind flags using Viper", zap.Error(err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cli/cmd_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (cmd *dbCommand) NewCobraCommand(dc map[string]DepvizCommand) *cobra.Comman

func (cmd *dbCommand) ParseFlags(flags *pflag.FlagSet) {
if err := viper.BindPFlags(flags); err != nil {
zap.L().Warn("find to bind flags using Viper", zap.Error(err))
zap.L().Warn("failed to bind flags using Viper", zap.Error(err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cli/cmd_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (cmd *graphCommand) ParseFlags(flags *pflag.FlagSet) {
flags.StringVarP(&cmd.opts.Format, "format", "f", "", "output file format (if empty, will determine thanks to output extension)")
//flags.BoolVarP(&opts.Preview, "preview", "p", false, "preview result")
if err := viper.BindPFlags(flags); err != nil {
zap.L().Warn("find to bind flags using Viper", zap.Error(err))
zap.L().Warn("failed to bind flags using Viper", zap.Error(err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cli/cmd_pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (cmd *pullCommand) ParseFlags(flags *pflag.FlagSet) {
flags.StringVarP(&cmd.opts.GithubToken, "github-token", "", "", "GitHub Token with 'issues' access")
flags.StringVarP(&cmd.opts.GitlabToken, "gitlab-token", "", "", "GitLab Token with 'issues' access")
if err := viper.BindPFlags(flags); err != nil {
zap.L().Warn("find to bind flags using Viper", zap.Error(err))
zap.L().Warn("failed to bind flags using Viper", zap.Error(err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cli/cmd_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (cmd *runCommand) ParseFlags(flags *pflag.FlagSet) {
flags.BoolVarP(&cmd.opts.NoPull, "no-pull", "", false, "do not pull new issues before running")
flags.StringSliceVarP(&cmd.opts.AdditionalPulls, "additional-pulls", "", []string{}, "additional pull that won't necessarily be displayed on the graph")
if err := viper.BindPFlags(flags); err != nil {
zap.L().Warn("find to bind flags using Viper", zap.Error(err))
zap.L().Warn("failed to bind flags using Viper", zap.Error(err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cli/cmd_web.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (cmd *webCommand) ParseFlags(flags *pflag.FlagSet) {
flags.StringVarP(&cmd.opts.Bind, "bind", "b", ":2020", "web server bind address")
flags.BoolVarP(&cmd.opts.ShowRoutes, "show-routes", "", false, "display available routes and quit")
if err := viper.BindPFlags(flags); err != nil {
zap.L().Warn("find to bind flags using Viper", zap.Error(err))
zap.L().Warn("failed to bind flags using Viper", zap.Error(err))
}
}

Expand Down

0 comments on commit 82ab858

Please sign in to comment.