jaguar_cli 2.1.2

  • Readme
  • Changelog
  • Installing
  • 27

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 Apr 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

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

Analysis of lib/project_creator/using_archive.dart reported 8 hints, including:

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

line 28 col 17: Unnecessary new keyword.

line 43 col 26: Unnecessary new keyword.

line 47 col 25: Unnecessary new keyword.

line 53 col 26: Unnecessary new keyword.

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

Analysis of lib/list_projects/list_projects.dart reported 6 hints, including:

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

line 15 col 20: Avoid const keyword.

line 16 col 3: Avoid const keyword.

line 20 col 3: Avoid const keyword.

line 24 col 3: Avoid const keyword.

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

Analysis of lib/cmd/list_project_template.dart reported 2 hints:

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

line 15 col 34: Unnecessary new keyword.

Fix additional 3 files with analysis or formatting issues. (-2 points)

Additional issues in the following files:

  • lib/project_creator/using_git_clone.dart (2 hints)
  • lib/cmd/create_project.dart (1 hint)
  • lib/cmd/version.dart (1 hint)

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. (-74.79 points)

The package was last published 91 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.13
args ^1.4.3 1.6.0
console ^3.0.0 3.1.0
http ^0.11.3 0.11.3+17 0.12.0+4
path ^1.6.1 1.6.4
quiver ^0.29.0 0.29.0+2 2.1.3
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.4
dart2_constant 1.0.2+dart2
http_parser 3.1.4
matcher 0.12.6
meta 1.1.8
source_span 1.7.0
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