LinuxSuRen / LinuxSuRen/http-downloader

Request to support for custom hd-home location

Open
#162 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue hacktoberfest
Dominant language
Go
Stars
48
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Developers want to add a new configuration into [hd-home](https://github.com/LinuxSuRen/hd-home), in addition to moving configuration file into a specific location, it will be very difficult to test against it.

### Currently steps to test:

1. Create configuration file: `project.yaml`
2. Move the configuration file into `~/.config/hd-home/config/repo/project.yaml`
3. Execute command `hd` to test: `hd get --fetch=false repo/project`

### Expect steps to test:

```bash
hd get --config-location=~/workspaces/hd-home repo/project
```

If we specific `config-location` flag, then the `fetch` flag will be ignored.

/kind feature

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the `hd get` command and trace how its current configuration location and `fetch` behavior are selected. Exercise the documented commands with and without `--config-location`; done means a custom location is used and the `fetch` flag is ignored when that option is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.