alias_short 1.0.4 copy "alias_short: ^1.0.4" to clipboard
alias_short: ^1.0.4 copied to clipboard

A command-line tool for simplifying Flutter commands with aliases.

Alias Short

Alias Short is a command-line tool that simplifies commonly used Flutter commands by allowing you to create short aliases for longer Flutter commands. Instead of typing lengthy commands like flutter build apk --release, you can simply type apk in the terminal to achieve the same result.

Features

•	Shorten long Flutter commands to quick and easy aliases.
•	Supports common Flutter build commands, such as building APKs, iOS builds, and more.
•	Easy to customize and extend by adding more aliases.

Installation

1.	Activate the package globally using the Dart command:
dart pub global activate alias_short
2.	Ensure that the Dart SDK's bin directory is added to your system's PATH environment variable. This directory is typically located at C:\src\flutter\bin\cache\dart-sdk\bin on Windows or /usr/local/bin on macOS and Linux.

If not, add the output of this command to your PATH: You will see the following output:

Building package executables...
Built alias_short:alias_short.
Installed executables alias_short, apk and ios.
Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.)
export PATH="$PATH":"$HOME/.pub-cache/bin"
Activated alias_short 1.0.2.
dart pub global list
3.	Verify that the installation was successful by running the following command:
alias_short --version

Usage

After installing the package, you can use the following aliases in your terminal:

•	Generate APK:
alias_short apk
•	Generate ios build:
alias_short ios

This is a shortcut for running flutter build ios.

You can add more commands by editing the commandsMap in the package.

Example

To generate a release APK for Android, simply open your terminal in your Flutter project and type:

apk

Instead of typing the full command:

flutter build apk --release

Customization

You can easily customize or extend the package by adding your own aliases.

1.	Clone this repository.
2.	Open the bin/alias_short.dart file.
3.	Add more aliases to the commandsMap:
final commandsMap = {
  'apk': 'flutter build apk --release',
  'ios': 'flutter build ios',
  'web': 'flutter build web',
  'clean': 'flutter clean',
  // Add more aliases here
};
4.	Rebuild the package or use it locally.

Contributing

Contributions are welcome! If you’d like to add more functionality or improve the package, feel free to open a pull request or submit an issue.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Additional Notes:

1.	You can modify the Customization section to better fit your own development workflow.
2.	Be sure to replace the links in the License and Contributing sections with the correct URLs if needed.

Let me know if you need any further adjustments!

1
likes
140
points
60
downloads

Publisher

unverified uploader

Weekly Downloads

A command-line tool for simplifying Flutter commands with aliases.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on alias_short