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

FEAT: Create alias input for command #83

Open
mrgnhnt96 opened this issue Nov 20, 2023 · 0 comments
Open

FEAT: Create alias input for command #83

mrgnhnt96 opened this issue Nov 20, 2023 · 0 comments

Comments

@mrgnhnt96
Copy link

mrgnhnt96 commented Nov 20, 2023

Description

As a developer, it's essential to maintain descriptive and explicit scripts for better understanding, especially for new team members. However, dealing with lengthy and explicit terminal commands can become tedious. To address this, there's a need to shorten the commands while preserving clarity.

Current Workaround

build_runner:
   build: flutter packages run build_runner build --delete-conflicting-outputs
   watch: flutter package run build_runner watch --delete-conflicting-outputs

br:
    b: $build_runner:build
    w: $build_runner:watch

Proposal

I propose introducing an 'aliases' feature for each command, providing a more concise representation.

build_runner:
   (aliases):
      - br
      - runner
   build:
      (scripts): flutter packages run build_runner build --delete-conflicting-outputs
      (aliases): b
   watch:
      (scripts): flutter package run build_runner watch --delete-conflicting-outputs
      (aliases): w

Alt Proposal

Here is an alternate approach that could be taken. It might make it easier for adoption since this approach is easier to read. However, it might be more difficult to implement as some pattern matching and parsing would be necessary

build_runner(br,runner): # multiple aliases are comma separated
   build(b): flutter packages run build_runner build --delete-conflicting-outputs
   watch(w): flutter package run build_runner watch --delete-conflicting-outputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant