f3ath / pubspec-version

A CLI tool to get/set/bump the `version` key in pubspec.yaml.
https://pub.dartlang.org/packages/pubspec_version
MIT License
26 stars 3 forks source link

Directory - flag and default fail. #4

Closed gentlefox closed 5 years ago

gentlefox commented 5 years ago

Followed the instructions. Here are the results.

gregarnott@Gentles-MVPMBP:~/projects/caretech/Mobile/goodhuman (*)
> pub run pubspec_version:bump patch   

Could not find a file named "pubspec.yaml" in "/Users/gregarnott/.pub-cache/hosted/pub.dartlang.org/async-2.0.8".

gregarnott@Gentles-MVPMBP:~/projects/caretech/Mobile/goodhuman (*)
> pub run pubspec_version:bump patch -d .

Could not find a file named "pubspec.yaml" in "/Users/gregarnott/.pub-cache/hosted/pub.dartlang.org/async-2.0.8".

gregarnott@Gentles-MVPMBP:~/projects/caretech/Mobile/goodhuman (*)
> ls -al
total 56
-rw-r--r--  1 gregarnott  staff   303B 12 Nov 11:14 .metadata
-rw-r--r--  1 gregarnott  staff   4.1K 16 Nov 11:43 .packages
-rw-r--r--  1 gregarnott  staff   147B 12 Nov 11:14 README.md
drwxr-xr-x  8 gregarnott  staff   256B 16 Nov 11:29 android
drwxr-xr-x  6 gregarnott  staff   192B 13 Nov 17:28 ios
drwxr-xr-x  3 gregarnott  staff    96B 12 Nov 11:14 lib
-rw-r--r--  1 gregarnott  staff   6.0K 16 Nov 11:43 pubspec.lock
-rw-r--r--  1 gregarnott  staff   2.3K 16 Nov 10:31 pubspec.yaml
drwxr-xr-x  3 gregarnott  staff    96B 12 Nov 11:14 test

Even trying absolute path fails, ie: pub run pubspec_version:bump patch -d $PWD.

gentlefox commented 5 years ago

My mistake. Alternate command required for use with flutter:

flutter packages pub run pubspec_version:bump minor
f3ath commented 5 years ago

Thanks for using my package :)