-
Notifications
You must be signed in to change notification settings - Fork 232
Closed
Labels
type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="96" height="96"hspace="10"> Issue by seaneagan
Originally opened as dart-lang/sdk#18911
It's nice to be able to tell someone to just run a command, instead of "add a foo dependency to your pubspec.yaml", especially for new dart users, and those using an editor without special pubspec.yaml editing support.
Similar to:
npm install <name> [--save|--save-dev|--save-optional]
Could have:
pub depend <package> [options]
Options:
--version -v Version_constraint (defaults to "any")
--source -s One of git,hosted,path) # or just derive from <package> ?
--dev -d Put in dev_dependencies
Metadata
Metadata
Assignees
Labels
type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug