Skip to content
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

feat: User is now prompted to enter credentials if there's no config file or it's filled with default information #139

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dfasaAZ
Copy link

@dfasaAZ dfasaAZ commented Feb 13, 2023

Summary of Changes

If program can't find existing config.yaml file, user will be prompted to create one and fill via command line(password input is hidden)
image
image

Same for default config file (you can see multiple account creation on the screenshot below)
image

Case where config.yaml is empty
image

Additional context

Fixed some typos in comments and created UserPrompt function to handle dialog with user

Testing instructions

Account creation should work in all scenarios
User prompt should accept all variants of "yes"

How to download the PR for testing

  1. Clone this PR
  2. Run gh pr checkout 124 (Requires GitHub CLI)
  3. Follow the Advanced Installation Guides from the Wiki

@dfasaAZ dfasaAZ changed the title User is now prompted to enter credentials if there's no config file or it's filled with default information feat: User is now prompted to enter credentials if there's no config file or it's filled with default information Feb 13, 2023
src/Config.py Outdated Show resolved Hide resolved
src/Config.py Outdated Show resolved Hide resolved
src/Config.py Outdated Show resolved Hide resolved
src/Config.py Outdated Show resolved Hide resolved
src/Config.py Outdated Show resolved Hide resolved
src/Config.py Outdated Show resolved Hide resolved
src/Config.py Outdated Show resolved Hide resolved
Copy link
Author

@dfasaAZ dfasaAZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed all mentioned lines

@alepouna
Copy link
Collaborator

Cool idea and looks okay to me, but for the typical user the config helper webfile is more than enough. Unnecessary PoF and maintenance.

@alepouna alepouna added the enhancement New feature or request label Feb 18, 2023
@LeagueOfPoro
Copy link
Owner

Cool idea and looks okay to me, but for the typical user the config helper webfile is more than enough. Unnecessary PoF and maintenance.

True. Maybe something simple as a link to the config helper would be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants