Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@twavv
Copy link
Contributor

@twavv twavv commented Jun 7, 2022

No description provided.

@twavv twavv requested review from doratzeng and jainankit June 7, 2022 21:51
@jainankit jainankit requested a review from a user June 16, 2022 19:37
state.Config = stackSyncConfig{
Current: stackSyncFlags.Current,
Trunk: stackSyncFlags.Trunk,
NoPush: stackSyncFlags.NoPush,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why NoPush instead of Push? And what's the default value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default is false. Generally in Go, you structure things such that the zero-value is the default (false in the case of a bool type), and I'd rather have it be "default push" than "default no-push".

case stacks.SyncAlreadyUpToDate:
fmt.Println("already up-to-date (no-op)")
_, _ = fmt.Fprint(os.Stderr,
colors.Success("already up-to-date"), "\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean colorSuccess.Sprint here and below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the colors package exports string functions because that's generally more useful to us here.

@aviator-app
Copy link
Contributor

aviator-app bot commented Jun 21, 2022

Aviator status

Aviator will automatically update this comment as the status of the PR changes.

This PR was merged using Aviator.

@aviator-app aviator-app bot merged commit 2a084d3 into master Jun 21, 2022
@aviator-app aviator-app bot deleted the travis/mer-875-av-cli-stack-sync-should-auto-force branch June 21, 2022 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants