Clones template snippets into project. Insert <variable> anywhere into your template and startr
will find and prompt you for replacements. It warns you if there are any existing files that match the current directory path.
Install dartlang, then:
$ pub global activate startr
See console-simple.dart for an example template repository (Copied courtesy of: https://github.com/google/stagehand)
$ startr clone git git@github.com:damondouglas/console-simple.dart.git
see list of community startrs here: https://github.com/damondouglas/startr.dart/wiki
Clones template snippets into project.
Usage: startr <command> [arguments]
Global options:
-h, --help Print this usage information.
Available commands:
clone Clones template into project.
help Display help information for startr.
Run "startr help <command>" for more information about a command.
Usage: startr clone <subcommand> [arguments]
-h, --help Print this usage information.
Available subcommands:
git Clones template from git repository.
path Clones template from local directory path.
Run "startr help" to see global options.
startr clone path <directory>
Clones template from local directory path.
Usage: startr clone path <directory>
-h, --help Print this usage information.
Run "startr help" to see global options.
startr clone git <uri>
Clones template from git repository.
Usage: startr clone git <uri>
-h, --help Print this usage information.
Run "startr help" to see global options.
Add this to your package's pubspec.yaml file:
dependencies:
startr: "^0.2.3"
You can install packages from the command line:
with pub:
$ pub get
with Flutter:
$ flutter packages get
Alternatively, your editor might support pub get
or packages get
.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:startr/startr.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
0.2.3 | Feb 8, 2017 |
|
|
0.2.2 | Feb 8, 2017 |
|
|
0.2.0 | Feb 7, 2017 |
|
|
0.1.1 | Apr 30, 2016 |
|
|
0.1.0 | Apr 28, 2016 |
|
|
0.0.2 | Apr 21, 2016 |
|
|
0.0.1 | Apr 21, 2016 | failed |
|
We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
0 | / 100 |
Health:
Code health derived from static analysis.
[more]
|
16 | / 100 |
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
72 | / 100 |
Overall score:
Weighted score of the above.
[more]
|
19 |
Detected platforms: Flutter, other
Primary library:
package:startr/startr.dart
with components:io
.
Fix analysis and formatting issues.
Analysis or formatting checks reported 14 errors 1 hint.
Strong-mode analysis of
lib/prompt.dart
failed with the following error:line: 25 col: 24
A value of type 'Iterable<String>' can't be assigned to a variable of type 'List'.Strong-mode analysis of
lib/src/clone.dart
failed with the following error:line: 49 col: 51
The argument type 'Iterable<String>' can't be assigned to the parameter type 'List'.Similar analysis of the following files failed:
lib/command.dart
(hint)
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*
, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/
directory to show how to use this package. Common file name patterns include:main.dart
,example.dart
or you could also usestartr.dart
.
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=1.0.0 <2.0.0 | ||
ansicolor | >=0.0.9 <0.1.0 | 0.0.9 | 0.1.0 |
args | >=0.13.4 <0.14.0 | 0.13.7 | 1.4.2 |
git | >=0.4.4+2 <0.5.0 | 0.4.4+3 | 0.5.1 |
path | >=1.3.9 <2.0.0 | 1.5.1 | |
random_string | >=0.0.1 <0.1.0 | 0.0.1 | |
Transitive dependencies | |||
bot | 0.28.0 | ||
when | 0.2.0 | ||
which | 0.1.3 | ||
Dev dependencies | |||
test | >=0.12.13 <0.13.0 |