Commit graph

9 commits

Author SHA1 Message Date
Paul Gauthier
a6b9023079 WIP: Change default history file name to ".aider.history 2023-05-09 10:51:43 -07:00
Paul Gauthier
786fb61bad changed name to aider, improved help 2023-05-09 10:24:28 -07:00
Paul Gauthier
1475e0d0fd Replace hardcoded "$CODER_" strings with f-strings that use the env_prefix variable.
# Context:
USER: You missed a bunch of explicit $CODER_xxx
ASSISTANT: I apologize for that. I will replace the remaining hardcoded "$CODER_" strings with f-strings that use the `env_prefix` variable.

```python
main.py
<<<<<<< ORIGINAL
        help="Disable pretty output of GPT responses ($CODER_PRETTY)",
=======
        help=f"Disable pretty output of GPT responses (${{{env_prefix}}}PRETTY)",
>>>>>>> UPDATED

main.py
<<<<<<< ORIGINAL
        help="Commit dirty files without confirmation (default: False, $CODER_COMMIT_DIRTY)",
=======
        help=f"Commit dirty files without confirmation (default: False, ${{{env_prefix}}}COMMIT_DIRTY)",
>>>>>>> UPDATED
```

Please let me know if there are any other instances that need to be updated.
2023-05-09 10:19:18 -07:00
Paul Gauthier
66058fd123 Replace hardcoded strings with f-strings that use env_prefix.
# Context:
USER: change all the hardcoded $CODER_... strings to be f-strings that use env_prefix
ASSISTANT: I will replace the hardcoded "$CODER_" strings with f-strings that use the `env_prefix` variable.

```python
main.py
<<<<<<< ORIGINAL
        default=os.environ.get("CODER_HISTORY_FILE", ".coder.history"),
        help="Specify the history file (default: .coder.history, $CODER_HISTORY_FILE)",
=======
        default=os.environ.get(f"{env_prefix}HISTORY_FILE", ".coder.history"),
        help="Specify the history file (default: .coder.history, ${env_prefix}HISTORY_FILE)",
>>>>>>> UPDATED

main.py
<<<<<<< ORIGINAL
        default=bool(int(os.environ.get(env_prefix + "PRETTY", 1))),
=======
        default=bool(int(os.environ.get(f"{env_prefix}PRETTY", 1))),
>>>>>>> UPDATED

main.py
<<<<<<< ORIGINAL
        default=bool(int(os.environ.get(env_prefix + "COMMIT_DIRTY", 0))),
=======
        default=bool(int(os.environ.get(f"{env_prefix}COMMIT_DIRTY", 0))),
>>>>>>> UPDATED
```
2023-05-09 10:18:11 -07:00
Paul Gauthier
cb63d15b52 WIP: Refactor CLI help messages to use $ prefix for environment variables. 2023-05-09 00:38:10 -07:00
Paul Gauthier
39046a455c Update help strings for arguments that take environment variable defaults.
# Context:
USER: for each arg that takes an environ default, add $ENV_NAME to the end of the help string
ASSISTANT: I will update the help strings for each argument that takes an environment variable default to include the environment variable name.

```python
main.py
<<<<<<< ORIGINAL
        help="Specify the history file (default: .coder.history)",
=======
        help="Specify the history file (default: .coder.history, env: CODER_HISTORY_FILE)",
>>>>>>> UPDATED

main.py
<<<<<<< ORIGINAL
        help="Disable prettyd output of GPT responses",
        default=bool(int(os.environ.get(env_prefix + "PRETTY", 1))),
=======
        help="Disable prettyd output of GPT responses (env: CODER_PRETTY)",
        default=bool(int(os.environ.get(env_prefix + "PRETTY", 1))),
>>>>>>> UPDATED

main.py
<<<<<<< ORIGINAL
        help="Commit dirty files without confirmation (env: CODER_COMMIT_DIRTY)",
        default=bool(int(os.environ.get(env_prefix + "COMMIT_DIRTY", 0))),
=======
        help="Commit dirty files without confirmation (default: False, env: CODER_COMMIT_DIRTY)",
        default=bool(int(os.environ.get(env_prefix + "COMMIT_DIRTY", 0))),
>>>>>>> UPDATED
```
2023-05-09 00:32:13 -07:00
Paul Gauthier
9beebc366d Update help strings for arguments with environment variable defaults.
# Context:
USER: for each arg that takes an environ default, add $ENV_NAME to the end of the help string
ASSISTANT: I will update the help strings for each argument that takes an environment variable default by adding the environment variable name to the end of the help string.

```python
main.py
<<<<<<< ORIGINAL
        help="Specify the history file (default: .coder.history)",
    )
...
        help="Disable prettyd output of GPT responses",
=======
        help="Specify the history file (default: .coder.history, env: CODER_HISTORY_FILE)",
    )
...
        help="Disable prettyd output of GPT responses (env: CODER_PRETTY)",
>>>>>>> UPDATED
```

```python
main.py
<<<<<<< ORIGINAL
        help="Commit dirty files without confirmation",
=======
        help="Commit dirty files without confirmation (env: CODER_COMMIT_DIRTY)",
>>>>>>> UPDATED
```
2023-05-09 00:18:32 -07:00
Paul Gauthier
1b57a6a703 lint 2023-05-09 00:16:17 -07:00
Paul Gauthier
e2c2f0c2b9 Initial commit: Added new files to the git repo. 2023-05-09 00:11:45 -07:00