-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add spinner support to rig project sync[:stop] #141
Conversation
Corrected a few more references to rig, and elaborated the build script.
Release 1.2.0
1.2.1 release
1.2.2 Release
1.2.3 Release
Version 1.3.0
Version 1.3.1
1.3.2 Release
2.0.0 release
if err := util.Command("docker", "volume", "create", volumeName).Run(); err != nil { | ||
return cmd.Failure(fmt.Sprintf("Failed to create sync volume: %s", volumeName), "VOLUME-CREATE-FAILED", 13) | ||
} | ||
|
||
cmd.out.Info("Starting Unison container") | ||
cmd.out.Info("Sync volume '%s' created", volumeName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never see this message, even recording and playing in slow motion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On further testing, I don't see it without verbose mode but I do see it in verbose mode.
@@ -283,7 +286,7 @@ func (cmd *ProjectSync) LoadComposeFile() (*ComposeFile, error) { | |||
// when compiled without -cgo this executable will not use the native mac dns resolution | |||
// which is how we have configured dnsdock to provide names for containers. | |||
func (cmd *ProjectSync) WaitForUnisonContainer(containerName string, timeoutSeconds int) (string, error) { | |||
cmd.out.Info("Waiting for container to start") | |||
cmd.out.SpinWithVerbose("Sync container '%s' started , waiting for unison server process...", containerName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never see this message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore this, I wasn't supposed to because I was running in non verbose mode. It's there in verbose mode.
I dropped a few notes about where I don't see messages though I consider that not particularly blocking. Here is the sequence I see: |
One other thing I noticed (which I also don't think needs to block) is the error message doesn't work as nicely as the success messages do. Since the message is getting returned however it doesn't seem to be as simple as swapping it to a logger message. Perhaps doing a log message and then returning the error? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine even if there are some quirks keeping a message or two from displaying for me
This is a first take, I think there's some language and formatting tightening potential, but it all seems to work as you'd expect.