git_version 0.3.0 copy "git_version: ^0.3.0" to clipboard
git_version: ^0.3.0 copied to clipboard

Replaces the '%version%' placeholder with your current git version

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate git_version

Use it

The package has the following executables:

$ showGitVersion

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add git_version

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  git_version: ^0.3.0

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:git_version/git_version.dart';
0
likes
25
pub points
0%
popularity

Publisher

unverified uploader

Replaces the '%version%' placeholder with your current git version

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

build, console_log_handler, logging, where

More

Packages that depend on git_version