-
Notifications
You must be signed in to change notification settings - Fork 40
CLI usability: pip-installable + default to current directory #3
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
06f0351
1a1b7e9
59295b4
3984f73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,3 +6,6 @@ dist | |
| changes.patch | ||
| .firebase-service-account.json | ||
| .env | ||
|
|
||
| # Python package metadata | ||
| *.egg-info/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,10 @@ | |
| import pathlib | ||
|
|
||
| # Import the necessary function from the agentignore_rules module | ||
| from agentignore_rules import evaluate_path # Assuming momoa_client is package root | ||
| try: | ||
| from agentignore_rules import evaluate_path | ||
| except ImportError: | ||
| from .agentignore_rules import evaluate_path # Assuming momoa_client is package root | ||
|
anschmieg marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Variable to store the number of lines the wrapped question takes | ||
| question_lines_count = None | ||
|
|
@@ -558,6 +561,10 @@ def main(): | |
|
|
||
| args = parser.parse_args() | ||
|
|
||
| # If no directory or files specified, default to current directory | ||
| if args.directory is None and not args.files: | ||
| args.directory = os.getcwd() | ||
|
Comment on lines
+564
to
+566
|
||
|
|
||
| # -------------------------------------------------------------------------- | ||
| # MODIFIED: Check if --spec and --env arguments are file paths. | ||
| # If they are, read the content from the file. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=61.0"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "momoa-cli" | ||
| version = "0.1.0" | ||
| description = "MoMoA: Mixture of Mixture of Agents CLI" | ||
| readme = "README.md" | ||
| requires-python = ">=3.8" | ||
| dependencies = [ | ||
| "websocket-client" | ||
| ] | ||
|
|
||
| [project.scripts] | ||
| momoa = "momoa_cli.python_cli:main" | ||
|
|
||
| [tool.setuptools] | ||
| packages = ["momoa_cli"] | ||
|
|
||
| [tool.setuptools.package-dir] | ||
| momoa_cli = "client-cli" |
Uh oh!
There was an error while loading. Please reload this page.