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

Run without any configuration when it is used immediately after installation #45

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

Conversation

ROCKTAKEY
Copy link

Thanks for your great package. I like this package so much that I create Emacs client for rhq.

This PR have 2 changes. These changes allow us to use full features of rhq without any configuration.

  • config.toml becomes unnecessary to run
  • Cache become unnecessary to run rhq list

config.toml becomes unnecessary to run

rhq needs config.toml, but it may be often annoying because rhq can be used without any configuration. For example, I use it without any configuration, so I just touch ~/.config/rhq/config.toml before use.
On this PR, rhq just uses empty configuration when config.toml does not exist.

Cache becomes unnecessary to run rhq list

rhq list needs cache. However, the cache has repositories added only by rhq, so nonexistence of cache means no repositories are added,
On this PR, rhq regards absence of cache as no repositories.

Now `rhq` can be run without config.toml.
Now `rhq list` throw no error even it is used as soon as it is installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant