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

Target name abbreviation #809

Merged
merged 2 commits into from
Aug 28, 2022
Merged

Target name abbreviation #809

merged 2 commits into from
Aug 28, 2022

Conversation

adamralph
Copy link
Owner

@adamralph adamralph commented Aug 28, 2022

Use case(s)

Avoiding having to provide the full names of specific targets.

Description

When running or listing specific targets, the names of those targets may be abbreviated. E.g.

$ ./build -l
build
test
pack
$ ./build t p     # runs the test and pack targets

If an abbreviation is ambiguous, an error is shown. E.g.

$ ./build -l
build-lib
build-app
test-lib
test-app
$ ./build b t
Ambiguous targets: b (build-lib build-app) t (test-lib test-app)
$ echo $?         # gets last exit code
2

Alternatives

Keep typing the full names of the targets.

Additional context

N/A

@adamralph adamralph added the enhancement New feature or request label Aug 28, 2022
@adamralph adamralph added this to the 4.1.0 milestone Aug 28, 2022
@adamralph adamralph merged commit 985ac76 into main Aug 28, 2022
@adamralph adamralph deleted the target-name-abbreviation branch August 28, 2022 17:27
@adamralph
Copy link
Owner Author

released in 4.1.0-alpha.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant