@@ -51,7 +51,7 @@ type options struct {
5151func parseOptions () options {
5252 var o options
5353 fs := flag .NewFlagSet (os .Args [0 ], flag .ExitOnError )
54- o .FutureOptions . Bind (fs )
54+ o .Bind (fs )
5555 fs .StringVar (& o .githubLogin , "github-login" , githubLogin , "The GitHub username to use." )
5656 fs .StringVar (& o .gitName , "git-name" , "" , "The name to use on the git commit. Requires --git-email. If not specified, uses the system default." )
5757 fs .StringVar (& o .gitEmail , "git-email" , "" , "The email to use on the git commit. Requires --git-name. If not specified, uses the system default." )
@@ -135,11 +135,11 @@ func main() {
135135 logrus .WithError (fmt .Errorf ("version %s split by dot doesn't have two elements" , o .CurrentRelease )).Fatal ("Failed to parse the current version" )
136136 }
137137
138- if err := secret .Add (o .GitHubOptions . TokenPath ); err != nil {
138+ if err := secret .Add (o .TokenPath ); err != nil {
139139 logrus .WithError (err ).Fatal ("Failed to start secrets agent" )
140140 }
141141
142- gc , err := o .GitHubOptions . GitHubClient (! o .Confirm )
142+ gc , err := o .GitHubClient (! o .Confirm )
143143 if err != nil {
144144 logrus .WithError (err ).Fatal ("error getting GitHub client" )
145145 }
@@ -292,7 +292,7 @@ func main() {
292292func runSteps (steps []step , author string , stdout , stderr io.Writer ) (needsPushing bool , err error ) {
293293 startCommitOut , err := exec .Command ("git" , "rev-parse" , "HEAD" ).CombinedOutput ()
294294 if err != nil {
295- return false , fmt .Errorf ("failed to execute `git rev-parse HEAD`: %w\n output:%s\n " , err , string (startCommitOut ))
295+ return false , fmt .Errorf ("failed to execute `git rev-parse HEAD`: %w\n output:%s" , err , string (startCommitOut ))
296296 }
297297 startCommitSHA := strings .TrimSpace (string (startCommitOut ))
298298
@@ -313,7 +313,7 @@ func runSteps(steps []step, author string, stdout, stderr io.Writer) (needsPushi
313313
314314 overallDiff , err := exec .Command ("git" , "diff" , startCommitSHA ).CombinedOutput ()
315315 if err != nil {
316- return false , fmt .Errorf ("failed to check the overall diff: %w, out:\n %s\n " , err , string (overallDiff ))
316+ return false , fmt .Errorf ("failed to check the overall diff: %w, out:\n %s" , err , string (overallDiff ))
317317 }
318318 if strings .TrimSpace (string (overallDiff )) == "" {
319319 logrus .Info ("Empty overall diff" )
0 commit comments