flutterfy 1.0.1+1727741864 copy "flutterfy: ^1.0.1+1727741864" to clipboard
flutterfy: ^1.0.1+1727741864 copied to clipboard

A tool to automatically manage version updates in pubspec.yaml.

example/flutterfy_example.dart

/// This Dart program takes a version level (major, minor, or patch) as a command
/// line argument and updates the version accordingly using the Flutterfy package.
///
/// Args:
///   arguments (List<String>): The `arguments` variable in the `main` function is a
/// list of strings that contains the command-line arguments passed to the Dart
/// program when it is executed. In this case, the program expects the user to
/// provide a version level (major, minor, or patch) as a command-line argument.
import 'dart:io';

import 'package:flutterfy/flutterfy.dart';

void main(List<String> arguments) {
  if (arguments.isEmpty) {
    print('Error: Please provide a version level (major, minor, patch)');
    exit(1);
  }

  updateVersion(arguments[0]);
}
0
likes
160
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A tool to automatically manage version updates in pubspec.yaml.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on flutterfy