angel_cli 2.1.7+1

  • Readme
  • Changelog
  • Example
  • Installing
  • 46

angel_cli #

Screenshot of Terminal

Command-line tools for the Angel framework. Includes functionality such as:

  • Project scaffolding
  • Generating service models, plugins, tests and more
  • Renaming projects
  • Much more...

To install:

$ pub global activate angel_cli

And then, for information on each command:

$ angel help

2.1.7+1 #

  • Fix a bug where new directories were not being created in init.

2.1.7 #

  • Fix a bug where ArgResults.arguments was used in init instead of the intended ArgResults.rest.
  • Stop including package:angel_model imports in make model.
  • Update dependencies in make commands.
  • Fix make model to generate ORM + migration by default.
  • Fix MakerDependency logic to print missing dependencies.

2.1.6 #

  • Fix a bug where models always defaulted to ORM.
  • Add GraphQL boilerplate.
  • Automatically restore terminal colors on shutdown.

2.1.5+1 #

  • Update to inflection2.

2.1.5 #

  • Add shared boilerplates.
  • Remove uncecessary angel_model imports.

2.1.4+1 #

  • Patch part of 'path' renames.

2.1.4 #

  • The migration argument to model just emits an annotation now.
  • Add the ORM boilerplate.

2.1.3 #

  • Fix generation of ORM models.
  • A --project-name to init command.

2.1.2 #

  • No migrations-by-default.

2.1.1 #

  • Edit the way rename runs, leaving no corner unturned.

2.1.0 #

  • Deprecate angel install.
  • Rename projects using snake_case.
  • init now fetches from master.
  • Remove the 1.x option.
  • Add make migration command.
  • Replace {{oldName}} in the rename command.
  • pub get now runs with inheritStdio.

2.0.1 #

  • deploy systemd now has an --install option, where you can immediately spawn the service.

2.0.0 #

  • init can now produce either 1.x or 2.x projects.
  • Fixed deps for compatibility with Dart2 stable.

1.3.4 #

  • Fix another typo.

1.3.3 #

  • Fix a small typo in the model generator.

1.3.2 #

  • Restore part directives in generated models.

1.3.1 #

  • Add deploy nginx and deploy systemd.

1.3.0 #

  • Focus on Dart2 from here on out.
  • Update code_builder.
  • More changes...

1.1.5 #

Deprecated several commands, in favor of the make command:

  • controller
  • plugin
  • service
  • test

The rename command will now replace all occurrences of the old project names with the new one in config/ YAML files, and also operates on the glob config/**/*.yaml.

Changed the call to run angel start to run dart bin/server.dart instead, after an init command.

example/main.dart

void main() {
  // This package isn't usable from code.
}

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate angel_cli

2. Use it

The package has the following executables:


$ angel

Use this package as a library

1. Depend on it

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


dependencies:
  angel_cli: ^2.1.7+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:angel_cli/angel_cli.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
88
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

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

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: other

Primary library: package:angel_cli/angel_cli.dart with components: io, mirrors.

Health suggestions

Fix lib/src/commands/init.dart. (-2.96 points)

Analysis of lib/src/commands/init.dart reported 6 hints, including:

line 97 col 21: Avoid empty catch blocks.

line 102 col 19: Avoid empty catch blocks.

line 106 col 19: Avoid empty catch blocks.

line 131 col 11: DO use curly braces for all flow control structures.

line 134 col 11: DO use curly braces for all flow control structures.

Fix lib/src/commands/rename.dart. (-2.96 points)

Analysis of lib/src/commands/rename.dart reported 6 hints, including:

line 2 col 1: 'package:analyzer/analyzer.dart' is deprecated and shouldn't be used.

line 27 col 7: DO use curly braces for all flow control structures.

line 52 col 9: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 53 col 9: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 112 col 17: 'parseCompilationUnit' is deprecated and shouldn't be used.

Fix lib/src/commands/install.dart. (-1.99 points)

Analysis of lib/src/commands/install.dart reported 4 hints:

line 69 col 9: DO use curly braces for all flow control structures.

line 78 col 11: DO use curly braces for all flow control structures.

line 93 col 17: DO use curly braces for all flow control structures.

line 102 col 13: DO use curly braces for all flow control structures.

Fix additional 6 files with analysis or formatting issues. (-4.99 points)

Additional issues in the following files:

  • lib/src/commands/make/maker.dart (3 hints)
  • lib/src/commands/make/controller.dart (2 hints)
  • lib/src/commands/make/service.dart (2 hints)
  • lib/src/commands/doctor.dart (1 hint)
  • lib/src/commands/make/migration.dart (1 hint)
  • lib/src/commands/pub.dart (1 hint)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
analyzer >=0.32.0 <2.0.0 0.37.1+1 0.39.0
args ^1.0.0 1.5.2
code_builder ^3.0.0 3.2.0
dart_style ^1.0.0 1.2.10 1.3.2
glob ^1.1.0 1.2.0
http ^0.12.0 0.12.0+2
inflection2 ^0.4.2 0.4.3
io ^0.3.2 0.3.3
mustache4dart ^3.0.0-dev.1.0 3.0.0-dev.1.0
path ^1.0.0 1.6.4
prompts ^1.0.0 1.3.1
pubspec_parse ^0.1.2 0.1.5
quiver ^2.0.0 2.0.5
recase ^2.0.0 2.0.1
shutdown ^0.4.0 0.4.0
watcher ^0.9.7 0.9.7+12
yaml ^2.0.0 2.2.0
Transitive dependencies
async 2.4.0
build 1.1.6 1.2.0
build_config 0.4.1+1
build_daemon 2.1.0
build_resolvers 1.2.1
build_runner 1.6.9 1.7.2
build_runner_core 3.1.1 4.1.0
built_collection 4.2.2
built_value 6.7.1
charcode 1.1.2
checked_yaml 1.0.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
csslib 0.16.1
fixnum 0.10.9
front_end 0.1.21+1 0.1.28
graphs 0.2.0
html 0.14.0+3
http_multi_server 2.1.0
http_parser 3.1.3
js 0.6.1+1
json_annotation 3.0.0
kernel 0.3.21+1 0.3.28
logging 0.11.3+2
matcher 0.12.6
meta 1.1.7
mime 0.9.6+3
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
package_resolver 1.0.10
pedantic 1.8.0+1
pool 1.4.0
pub_semver 1.4.2
reflectable 2.1.0
shelf 0.7.5
shelf_web_socket 0.2.3
source_span 1.5.5
stack_trace 1.9.3
stream_channel 2.0.0
stream_transform 0.0.19
string_scanner 1.0.5
term_glyph 1.1.0
timing 0.1.1+2
typed_data 1.1.6
web_socket_channel 1.1.0