liquid-labs / liquid-labs/bash-toolkit

Add options to take source and output directory.

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

Nobody has claimed this yet.

good first issue
Dominant language
JavaScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

This issue is blocked on #3 and will be moved to the new repo once created.

No need to get fancy, just take as positional parameters for now. Assume current `bash` (input) and `dist` (output) if no arguments given. I believe the following will allow the script to take one or two arguments.

```bash
SRC=${1:-src/}
DIST=${2:-dist/}
```

Throw in a basic 'print usage and exit' that prints out if more than two arguments given.

Update unit tests to test:

* defaulting values build as expected,
* only src specified build, and
* both specified.

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

First check issue #3 and confirm the destination repository, since this issue says the work will move there. Locate the bash entry point and existing unit tests, then verify the default, one-argument, and two-argument builds and the usage response for more than two arguments.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.