Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix help print #193

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions agentstack/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@
pass # Update check already done

# inside project dir commands only
conf.assert_project()

if args.command in ["run", "r"]:
elif args.command in ["run", "r"]:
conf.assert_project()

Check warning on line 191 in agentstack/main.py

View check run for this annotation

Codecov / codecov/patch

agentstack/main.py#L191

Added line #L191 was not covered by tests
run_project(command=args.function, debug=args.debug, cli_args=extra_args)
elif args.command in ['generate', 'g']:
conf.assert_project()

Check warning on line 194 in agentstack/main.py

View check run for this annotation

Codecov / codecov/patch

agentstack/main.py#L194

Added line #L194 was not covered by tests
if args.generate_command in ['agent', 'a']:
if not args.llm:
configure_default_model()
Expand All @@ -201,6 +201,7 @@
else:
generate_parser.print_help()
elif args.command in ['export', 'e']:
conf.assert_project()

Check warning on line 204 in agentstack/main.py

View check run for this annotation

Codecov / codecov/patch

agentstack/main.py#L204

Added line #L204 was not covered by tests
export_template(args.filename)
else:
parser.print_help()
Expand Down
Loading