Skip to content

Commit

Permalink
Add autocomplete for pros
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcertora committed Jan 8, 2025
1 parent ec722a9 commit e8cf166
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Quorum/entry_points/quorum_cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Quorum/entry_points/quorum_cli.py

import argparse
import argcomplete
from pydantic import BaseModel
from typing import Callable, Optional

Expand Down Expand Up @@ -114,6 +115,8 @@ def main():
add_arguments(subparser, subcmd.arguments)
subparser.set_defaults(func=subcmd.func)

argcomplete.autocomplete(parser)

args = parser.parse_args()

# Dispatch to the appropriate function
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ This action will:
- **`execution.json`**: Specify proposal addresses to be checked for different chains.
- **`README.md`**: An auto-generated resource explaining your next steps.

3. **Optional: Command Autocompletion**
Enable Quorum command autocompletion by adding this line to your shell profile (`.bashrc` or `.zshrc`):
```bash
eval "$(register-python-argcomplete quorum)"
```
---

## Clarifications
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ langgraph
langchain_community
python-dotenv
json5
argcomplete
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20250108.122959.856131
20250108.125116.119195

0 comments on commit e8cf166

Please sign in to comment.