Skip to content

Add options to take source and output directory. #2

Description

@zanerock

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.

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions