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

Add a configuration support to hd #147

Closed
1 task
LinuxSuRen opened this issue Sep 30, 2021 · 0 comments · Fixed by #180
Closed
1 task

Add a configuration support to hd #147

LinuxSuRen opened this issue Sep 30, 2021 · 0 comments · Fixed by #180
Labels
hacktoberfest help wanted Extra attention is needed

Comments

@LinuxSuRen
Copy link
Owner

LinuxSuRen commented Sep 30, 2021

Some flags are used a lot. Such as --provider, --proxy-github. We can save these flags into a config file. For instance, the config file could be ~/.config/hd/config.yaml.

A sample config file structure could be:

provider: github | gitee
proxy:
  github: gh.api.99988866.xyz
packages:
  linuxsuren:
    http-downloader:
      installationTime: 2021-01-01:010101
      version: v0.0.42
      latestVersion: v0.0.43

We can add the package upgrade feature base on the version storage:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant