mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
fix(cli): keep the selected instance in the commands that hints suggest (#74)
Commands printed by errors, env and doctor now carry --profile, --container and an explicit --endpoint, so pasting one acts on the same instance. After a failed pull, the suggested start also keeps the --port, --image, --persist, --services and --namespace you typed. The env load hint adds -o text after a profile, which may set output: json, and quotes values for the shell it is for. A value containing a line break prints as a placeholder, because the hint is a comment in the output people feed to eval. Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
1 parent
a319e2d242
commit
882c0ea7be
25 files changed
+355
-43
No files matched your search
@@ -123,7 +123,7 @@ public class WaitCommand implements Callable<Integer> {
|
||||
|
||||
if (spinner) clearSpinner(printer);
|
||||
printer.error("Timed out waiting for " + profile.displayName() + " after " + timeout
|
||||
+ ".\nIs the container running? Try '" + profile.commandPrefix() + " status'.");
|
||||
+ ".\nIs the container running? Try '" + profile.commandPrefix() + " status" + global.instanceSelector() + "'.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user