cage_cli 0.0.6

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

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]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

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

  • Dart: 2.2.0
  • pana: 0.12.14

Platforms

Detected platforms: other

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

Maintenance suggestions

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.1
dart_style ^1.2.4 1.2.4
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.3
yaml ^2.1.15 2.1.15
Transitive dependencies
analyzer 0.35.4
async 2.0.8
charcode 1.1.2
collection 1.14.11
convert 2.1.1
coverage 0.12.4
crypto 2.0.6
front_end 0.1.14
glob 1.1.7
json_annotation 2.0.0
json_rpc_2 2.0.9
kernel 0.3.14
lcov 4.5.0 5.1.0
package_config 1.0.5
pub_semver 1.4.2
source_span 1.5.5
stack_trace 1.9.3
stream_channel 1.6.8
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
vm_service_client 0.2.6
watcher 0.9.7+10
web_socket_channel 1.0.9
Dev dependencies
test ^1.5.3