>>dart pub add characters
>>dart pub get
\pubspec.yaml
============
name: main
description: A simple command-line application.
# version: 1.0.0
# homepage: https://www.example.com
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
# path: ^1.7.0
characters: ^1.1.0
dev_dependencies:
pedantic: ^1.11.0
dart pub -h
Work with packages.
Usage: dart pub [arguments...]
-h, --help Print this usage information.
--[no-]trace Print debugging information when an error occurs.
-v, --verbose Shortcut for "--verbosity=all".
Available subcommands:
add Add a dependency to pubspec.yaml.
cache Work with the system cache.
deps Print package dependencies.
downgrade Downgrade the current package's dependencies to oldest versions.
get Get the current package's dependencies.
global Work with global packages.
login Log into pub.dev.
logout Log out of pub.dev.
outdated Analyze your dependencies to find which ones can be upgraded.
publish Publish the current package to pub.dartlang.org.
remove Removes a dependency from the current package.
upgrade Upgrade the current package's dependencies to latest versions.
uploader Manage uploaders for a package on pub.dartlang.org.
Комментариев нет:
Отправить комментарий