Default the service install prompt to yes
This commit is contained in:
1 parent
0f4cc3f01f
commit
4320f55bd4
1 file changed
+3
-2
+3
-2
@@ -341,8 +341,9 @@ def cmd_service(args):
|
||||
print(" in the environment it inherits.")
|
||||
print()
|
||||
|
||||
if not args.yes and not confirm("Install and start it now?"):
|
||||
print("Not installed.")
|
||||
if not args.yes and not confirm("Install and start it now?", default=True):
|
||||
print("Not installed. Nothing is running.")
|
||||
print(f"Run it in the foreground with: {paths.command('run ' + name)}")
|
||||
return
|
||||
|
||||
ok, detail = service.install(name)
|
||||
|
||||
Reference in new issue
Block a user