small UX updates around sources and mirrors
@@ -1503,10 +1503,7 @@ func (c *streamCmd) askMirror() *api.StreamSource {
mirror := &api.StreamSource{Name: c.mirror}
ok, err := askConfirmation("Adjust mirror start", false)
kingpin.FatalIfError(err, "Could not request mirror details")
- if !ok {
- return mirror
- }
-
+ if ok {
a, err := askOneInt("Mirror Start Sequence", "0", "Start mirroring at a specific sequence")
kingpin.FatalIfError(err, "Invalid sequence")
mirror.OptStartSeq = uint64(a)
@@ -1524,6 +1521,7 @@ func (c *streamCmd) askMirror() *api.StreamSource {
mirror.OptStartTime = &t
}
}
+ }
ok, err = askConfirmation("Import mirror from a different account", false)
kingpin.FatalIfError(err, "Could not request mirror details")
@@ -1576,7 +1574,7 @@ func (c *streamCmd) askSource(name string, prefix string) *api.StreamSource {
kingpin.FatalIfError(err, "could not request filter")
}
- ok, err = askConfirmation(fmt.Sprintf("Import %s source from a different account", prefix), false)
+ ok, err = askConfirmation(fmt.Sprintf("Import %q from a different account", name), false)
kingpin.FatalIfError(err, "Could not request mirror details")
if !ok {
return cfg
