stalecontext/forgejo-cli-plus
2
4
Fork
You've already forked forgejo-cli-plus
1

Agentic CLI patterns: --yes, --json, --dry-run, --force flags #17

Closed
opened 2026年03月15日 18:37:52 +01:00 by stalecontext · 0 comments

Add global flags to enable safe non-interactive and AI agent operation:

  • `--yes`/`-y`: Skip confirmation prompts (auto-confirm destructive actions)
  • `--json`: Machine-readable JSON output for all commands
  • `--verbose`/`-v`: Detailed output for debugging
  • `--dry-run`: Preview what a command would do without executing
  • `--force`/`-f`: Override safety checks where appropriate

These patterns make the CLI usable by automation scripts and AI agents that cannot interact with confirmation prompts, while preserving safety for interactive human use.

Upstream: forgejo-cli#260 - rejected without explanation.

Add global flags to enable safe non-interactive and AI agent operation: - \`--yes\`/\`-y\`: Skip confirmation prompts (auto-confirm destructive actions) - \`--json\`: Machine-readable JSON output for all commands - \`--verbose\`/\`-v\`: Detailed output for debugging - \`--dry-run\`: Preview what a command would do without executing - \`--force\`/\`-f\`: Override safety checks where appropriate These patterns make the CLI usable by automation scripts and AI agents that cannot interact with confirmation prompts, while preserving safety for interactive human use. **Upstream:** [forgejo-cli#260](https://codeberg.org/forgejo-contrib/forgejo-cli/pulls/260) - rejected without explanation.
Sign in to join this conversation.
No Branch/Tag specified
main
feature/issue-batch-2026-07
upstream-sync/2026-07-02
feat/repo-create-org
projects
v2.0.0
upstream-reviewed/2026-07-02
v1.1.0
upstream-reviewed/2026-03-31
v1.0.0
upstream-reviewed/2026-03-16
v0.4.0
v0.3.0
v0.2.0
v0.1.1
v0.1.0
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
stalecontext/forgejo-cli-plus#17
Reference in a new issue
stalecontext/forgejo-cli-plus
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?