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(" in the environment it inherits.")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
if not args.yes and not confirm("Install and start it now?"):
|
if not args.yes and not confirm("Install and start it now?", default=True):
|
||||||
print("Not installed.")
|
print("Not installed. Nothing is running.")
|
||||||
|
print(f"Run it in the foreground with: {paths.command('run ' + name)}")
|
||||||
return
|
return
|
||||||
|
|
||||||
ok, detail = service.install(name)
|
ok, detail = service.install(name)
|
||||||
|
|||||||
Reference in new issue
Block a user