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

Syntax for options and dependencies #1

Open
rniii opened this issue Aug 10, 2024 · 1 comment
Open

Syntax for options and dependencies #1

rniii opened this issue Aug 10, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rniii
Copy link
Owner

rniii commented Aug 10, 2024

Currently passing options via environment variables works, but it's not exactly the nicest thing

As a main goal, the syntax should be immediately obvious to someone who doesn't use maid, and I also would like it to not have english words (e.g. like Run task ... before this). This is probably the point where this'll be different than the original repo, plus alternatives like mask

Syntax for options

I propose this:

### install

Installs project onto `$dstdir`

```sh
foo ... "$dstdir/bar"
```

It already kind of works, since the shell is run with -eu, not setting $dstdir before running maid install would crash. However it'd be nice if this was detected, and you could simply run maid install somedir (or maid install dstdir=somedir)

Syntax for dependencies

Not really sure. You can already simply run maid inside other tasks, but this is clumsy for non-shell tasks. File dependencies (like traditional make tasks) would also be pretty useful (I'm personally tired of using Rakefiles)

@rniii rniii added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 10, 2024
@rniii
Copy link
Owner Author

rniii commented Aug 10, 2024

For file deps it might be worth looking into egoist/maid#9. Maybe I'll support this syntax but I'd like a nice non-english alternative

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant