The Leverage CLI does not automatically create a .gitconfig file in the user's home directory if it is missing, leading to errors during execution.
Expected Behavior
The Leverage CLI should check for the existence of the .gitconfig file in the user's home directory (~/.gitconfig) and create it if it does not exist, ensuring smooth execution without manual intervention.
Steps to Reproduce
Steps to reproduce the behavior:
Go to a system where the .gitconfig file does not exist in the home directory.
Run any Leverage CLI command that requires the .gitconfig file, e.g., leverage tf shell.
Observe the error related to the missing .gitconfig file.
Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
OS: Linux, OSX
Leverage CLI Version: 1.12.1
Docker Version: 26.1.1
Python Version: 3.11.6
Additional Context
This issue is a known problem that affects users when the .gitconfig file is missing. The proposed solution is to update the CLI to automatically create the .gitconfig file in the user's home directory (~/.gitconfig) if it is not found. This enhancement will improve the user experience by reducing manual setup steps.
Describe the Bug
The Leverage CLI does not automatically create a
.gitconfig
file in the user's home directory if it is missing, leading to errors during execution.Expected Behavior
The Leverage CLI should check for the existence of the
.gitconfig
file in the user's home directory (~/.gitconfig
) and create it if it does not exist, ensuring smooth execution without manual intervention.Steps to Reproduce
Steps to reproduce the behavior:
.gitconfig
file does not exist in the home directory..gitconfig
file, e.g.,leverage tf shell
..gitconfig
file.Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Additional Context
This issue is a known problem that affects users when the
.gitconfig
file is missing. The proposed solution is to update the CLI to automatically create the.gitconfig
file in the user's home directory (~/.gitconfig
) if it is not found. This enhancement will improve the user experience by reducing manual setup steps.