Skip to content

Adding --not-interactive / --in cli flag - #28

Merged
jeremychone merged 1 commit into
aipack-ai:mainfrom
diaakasem:feature/add-not-interactive-flag
Feb 2, 2025
Merged

jeremychone merged 1 commit into
aipack-ai:mainfrom
diaakasem:feature/add-not-interactive-flag

Conversation

@diaakasem

Copy link
Copy Markdown
Contributor

Add --not-interactive / --ni CLI Flag for Non-Interactive Mode

Summary

This pull request introduces a new CLI flag, --not-interactive (alias: --ni), for the run command. This flag enables a one-shot execution mode, bypassing the default interactive behavior.

Changes

  1. README Update:
    • Added documentation for the --not-interactive / --ni flag, including examples of usage for the run command.
  2. CLI Argument Enhancements:
    • Modified RunArgs to include a not_interactive flag, which can be set via --not-interactive or --ni.
    • Updated the is_interactive method in CliCommand to respect the new flag.

Usage Examples

Example 1: One-shot execution

devai run --not-interactive proof-read -f "./doc/README.md"

Example 2: Alias for the flag

devai run --ni proof-read -f "./doc/README.md"

Rationale

This change enhances usability by offering a non-interactive mode for users who need one-shot executions, improving automation and script integration workflows.

Testing

-	Verified default interactive behavior remains unchanged.
-	Tested the --not-interactive flag and its alias in various scenarios to confirm the expected behavior.

@jeremychone

Copy link
Copy Markdown
Collaborator

@diaakasem thanks, I will look at it sometime in the next few days. Feel free to ping me next week if i did not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants