← Back to issue list

fix(cli): restrict --project-dir to init and pack commands (#1565)

View original Github issue

Metadata

Project
charmcraft
Number
#1583
Type
pull request
State
closed
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Merged #1565 to restrict the --project-dir CLI flag to init and pack commands. The change modified 9 files, removing 599 lines and adding 26, limiting flag scope to relevant commands and resolving the CLI configuration issue.

Suggested action:

No scores available.

Issue body

(CRAFT-2434)

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged #1565 to restrict the --project-dir CLI flag to init and pack commands. The change modified 9 files, removing 599 lines and adding 26, limiting flag scope to relevant commands and resolving the CLI configuration issue.
qwen3.6-35b-a3b-mtp-q6 Merged #1565. The --project-dir CLI flag is now restricted to init and pack commands, resolving CRAFT-2434. This change prevents invalid flag usage across other commands and enforces proper argument scoping.
qwen3.6-35b-a3b-mtp-q6 Merged PR #1565 to restrict the --project-dir CLI flag to the init and pack commands, resolving CRAFT-2434.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1592 fix(cli): restrict --project-dir to init and pack commands (#1565) charmcraft merged Merged to main as a cherry-pick, restricting the --project-dir CLI flag to init and pack commands. Approved by two reviewers, the update removes 579 lines across eight files.
94%
#1565 fix(cli): --project-dir should only be available for init and pack commands charmcraft merged Merged a fix restricting the --project-dir CLI flag to only init and pack commands. The change removed the global flag, cleaned up tests, and reduced code by nearly 600 lines. Approved by reviewers and passed all CI checks.
90%
#253 fix(application): Only allow --project-dir for init and pack craft-application closed Restricting --project-dir to init and pack commands was closed without merging. Reviewers requested changes with two unresolved comments, leading to abandonment.
71%