Commit graph

5 commits

Author SHA1 Message Date
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