jaguar_cli 2.1.2

  • Readme
  • Changelog
  • Installing
  • 31

jaguar_cli #

Command line tool for jaguar-dart

Main help #

jaguar help

Create new project #

begin sub-command creates a new project with the name provided using --name command line option.

jaguar begin --name helloworld

Run the project #

cd helloworld
pub get
dart bin/main.dart

Visit http://localhost:10000/hello from your browser.

Clone an example or boilerplate #

jaguar create::project --repo boilerplate_mux --name learn_mux

List available example and boilerplates #

jaguar list::projects

The complete list is also found at examples repositories as repositories.

Changelog #

2.1.2 #

  • Renamed boilerplate to boilerplate_reflect

2.1.1 #

  • Removed generators
  • Added begin command

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate jaguar_cli

2. Use it

The package has the following executables:

$ jaguar

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  jaguar_cli: ^2.1.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:jaguar_cli/begin/begin.dart';
import 'package:jaguar_cli/cmd/begin_project.dart';
import 'package:jaguar_cli/cmd/cmd.dart';
import 'package:jaguar_cli/cmd/create_project.dart';
import 'package:jaguar_cli/cmd/list_project_template.dart';
import 'package:jaguar_cli/cmd/version.dart';
import 'package:jaguar_cli/list_projects/list_projects.dart';
import 'package:jaguar_cli/project_creator/using_archive.dart';
import 'package:jaguar_cli/project_creator/using_git_clone.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: Flutter, other

Platform components identified in package: io.

Health suggestions

Fix lib/list_projects/list_projects.dart. (-1 points)

Analysis of lib/list_projects/list_projects.dart reported 2 hints:

line 3 col 8: Unused import: 'dart:async'.

line 29 col 21: Use ; instead of {} for empty constructor bodies.

Fix lib/project_creator/using_archive.dart. (-1 points)

Analysis of lib/project_creator/using_archive.dart reported 2 hints:

line 20 col 56: Use ; instead of {} for empty constructor bodies.

line 85 col 9: Use isNotEmpty instead of length

Fix lib/cmd/list_project_template.dart. (-0.50 points)

Analysis of lib/cmd/list_project_template.dart reported 1 hint:

line 4 col 32: Use ; instead of {} for empty constructor bodies.

Fix lib/cmd/version.dart. (-0.50 points)

Analysis of lib/cmd/version.dart reported 1 hint:

line 4 col 20: Use ; instead of {} for empty constructor bodies.

Fix lib/project_creator/using_git_clone.dart. (-0.50 points)

Analysis of lib/project_creator/using_git_clone.dart reported 1 hint:

line 14 col 54: Use ; instead of {} for empty constructor bodies.

Maintenance issues and suggestions

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (http, quiver).

Use analysis_options.yaml. (-10 points)

Change the name of your package's .analysis_options file to analysis_options.yaml.

Read more about the setup of analysis-options.yaml.

Fix .analysis_options.

The analyzer can't parse .analysis_options.

Package is getting outdated. (-28.22 points)

The package was last published 66 weeks ago.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and jaguar_cli.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.65.0 <3.0.0
archive ^2.0.0 2.0.10
args ^1.4.3 1.5.2
console ^3.0.0 3.1.0
http ^0.11.3 0.11.3+17 0.12.0+2
path ^1.6.1 1.6.4
quiver ^0.29.0 0.29.0+2 2.0.5
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
dart2_constant 1.0.2+dart2
http_parser 3.1.3
matcher 0.12.5
meta 1.1.7
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
test ^1.2.0