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

New setup command for bin/rmt-cli #987

Open
mssola opened this issue Apr 18, 2023 · 0 comments
Open

New setup command for bin/rmt-cli #987

mssola opened this issue Apr 18, 2023 · 0 comments
Assignees
Labels
good first issue This is a good first issue for new contributors. On hold Issue being evaluated

Comments

@mssola
Copy link
Contributor

mssola commented Apr 18, 2023

Description

As a part of the configuration of RMT, users can create and edit /etc/rmt.conf file to overwrite specific configurations for their needs (overwriting, then, a file such as this). On this note, there are some configuration values that are usually tweaked like database values (see the database section on the config/rmt.yml file) or SCC credentials (see the scc section on the config/rmt.yml file).

Having to explicitly edit this file manually is not exactly too friendly to new users or customers in general. Thus, we could add a new command, bin/rmt-cli setup, which would save the changes to this file after going through an interactive process. The intended workflow would be:

  1. User runs bin/rmt-cli setup.
  2. It suggests to copy ./config/rmt.yml to etc/rmt.conf file if etc/rmt.conf is not present.
  3. It interactively prompts for specific values like database and SCC credentials. The prompt should be clever enough to suggest default values or previously saved values. Otherwise, for things like SCC credentials suggest where to look for them.
  4. After all of this is done, the command should show the pairs of key-values and ask for confirmation.
  5. When confirmation is done, write the file and restart the RMT process (or ask the user to do it).

Note

Repository Mirroring Tool (RMT) is an open-source project and we can make it even better with your help and feedback. Keep in mind that your feedback and all communication around it will be publicly accessible by anyone. Make sure that you don't expose any personal or private information.

Please, check our contribution guide in order to submit your changes.

@mssola mssola added good first issue This is a good first issue for new contributors. On hold Issue being evaluated labels Apr 18, 2023
likhitha77 added a commit to likhitha77/rmt that referenced this issue Apr 24, 2023
likhitha77 added a commit to likhitha77/rmt that referenced this issue Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue This is a good first issue for new contributors. On hold Issue being evaluated
Projects
None yet
2 participants