commit 9c73094b2f4e4553f32de7c8d384a5da0cc40e3b
parent 7a54f2cb0803fc53c69d456d6d39463b751d9666
Author: Asher Morgan <asher@ashermorgan.net>
Date: Sat, 12 Sep 2026 15:34:31 -0700
Add windows command to cli usage output
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/aoh/client.py b/aoh/client.py
@@ -296,8 +296,11 @@ def cli(args):
if '-h' in args or '--help' in args:
if len(args) >= 1 and args[0] != '-':
prog = args[0]
+ elif sys.platform == 'win32':
+ prog = f'(Invoke-WebRequest {AOH_ORIGIN}/run).Content | ' \
+ f'{os.path.basename(sys.executable)} -'
else:
- prog = f'curl {AOH_ORIGIN}/run | ' \
+ prog = f'curl -s {AOH_ORIGIN}/run | ' \
f'{os.path.basename(sys.executable)} -'
print(f'Usage: {prog} [-h] [<playbook>] [<opts>...]')