cage_cli 0.0.6

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 43

Cage - CLI ยท GitHub license Pub Package Build Status codecov

Command line interface for cage framework. Avoids tedious work by generating source files.

Installation #

To install and update:

pub global activate cage_cli

Usage #

cage help

Changelog #

0.0.2 #

  • Minor adjustments for pub.

0.0.1 #

  • Initial beta release for testing.

example/cage_cli.dart

import 'package:cage_cli/cage_cli.dart';

final CageCliRunner runner = CageCliRunner();

void main() {
  _genModules();
  _genServices();
  _genWidgets();
}

void _genModules() {
  // generate module in /lib/src/test_module.dart
  runner.run(['generate', 'module', 'test']);
  // generate module in /lib/src/test/test_module.dart
  runner.run(['generate', 'module', 'test/test']);
}

void _genServices() {
  // generate service in /lib/src/test_service.dart
  runner.run(['generate', 'service', 'test']);
  // generate service in /lib/src/test/_services/test_service.dart
  runner.run(['generate', 'service', 'test/_services/test']);
}

void _genWidgets() {
  // generate widget source files in /lib/src
  // -> test.dart
  // -> test_meta.dart
  // -> test_presenter.dart
  // -> test_view.dart
  runner.run(['generate', 'widget', 'test']);
}

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate cage_cli

2. Use it

The package has the following executables:


$ cage

Use this package as a library

1. Depend on it

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


dependencies:
  cage_cli: ^0.0.6

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:cage_cli/cage_cli.dart';
  
Version Uploaded Documentation Archive
0.0.6 Mar 17, 2019 Go to the documentation of cage_cli 0.0.6 Download cage_cli 0.0.6 archive
0.0.5 Mar 16, 2019 Go to the documentation of cage_cli 0.0.5 Download cage_cli 0.0.5 archive
0.0.4 Mar 16, 2019 Go to the documentation of cage_cli 0.0.4 Download cage_cli 0.0.4 archive
0.0.3 Mar 16, 2019 Go to the documentation of cage_cli 0.0.3 Download cage_cli 0.0.3 archive
0.0.2 Mar 16, 2019 Go to the documentation of cage_cli 0.0.2 Download cage_cli 0.0.2 archive
0.0.1 Mar 16, 2019 Go to the documentation of cage_cli 0.0.1 Download cage_cli 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

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

  • Dart: 2.3.1
  • pana: 0.12.17

Platforms

Detected platforms: other

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

Health suggestions

Fix lib/src/generator.dart. (-1 points)

Analysis of lib/src/generator.dart reported 2 hints:

line 9 col 44: Use lowercase_with_underscores when specifying a library prefix.

line 10 col 36: Use lowercase_with_underscores when specifying a library prefix.

Fix lib/src/generate/module/module_generator.dart. (-0.50 points)

Analysis of lib/src/generate/module/module_generator.dart reported 1 hint:

line 5 col 36: Use lowercase_with_underscores when specifying a library prefix.

Fix lib/src/generate/service/service_generator.dart. (-0.50 points)

Analysis of lib/src/generate/service/service_generator.dart reported 1 hint:

line 5 col 36: Use lowercase_with_underscores when specifying a library prefix.

Fix lib/src/generate/widget/widget_generator.dart. (-0.50 points)

Analysis of lib/src/generate/widget/widget_generator.dart reported 1 hint:

line 5 col 36: Use lowercase_with_underscores when specifying a library prefix.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/RTK/cage_cli was unreachable.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
args ^1.5.1 1.5.2
dart_style ^1.2.4 1.2.8
logging ^0.11.3+2 0.11.3+2
meta ^1.1.7 1.1.7
mustache ^1.1.1 1.1.1
path ^1.6.2 1.6.2
resource ^2.1.5 2.1.5
test_coverage ^0.2.3 0.2.4 0.3.0+1
yaml ^2.1.15 2.1.15
Transitive dependencies
analyzer 0.36.3
async 2.2.0
charcode 1.1.2
collection 1.14.11
convert 2.1.1
coverage 0.12.4
crypto 2.0.6
csslib 0.16.0
front_end 0.1.18
glob 1.1.7
html 0.14.0+2
json_annotation 2.4.0
json_rpc_2 2.1.0
kernel 0.3.18
lcov 5.3.0
package_config 1.0.5
pub_semver 1.4.2
source_span 1.5.5
stack_trace 1.9.3
stream_channel 2.0.0
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
vm_service_client 0.2.6+2
watcher 0.9.7+10
web_socket_channel 1.0.13
Dev dependencies
test ^1.5.3