pro 0.0.2 pro: ^0.0.2 copied to clipboard
A starting point for Dart Process Api package, for Using commondline app to Easyly access start stop restart commands, see demo or examples.
A RestFul Api library for Dart developers.
Created from templates made available by Stagehand under a BSD-style license.
Usage #
restful api for small things...
your app.dart file example:
import 'package:alm/alm.dart';
import 'package:pro/pro.dart';
void main(List<String> arguments) async {
/// actions [start stop restart status] available else running the loop
if (!await Pro(arguments).checkAction()) return;
Pro.log('hello world!!!');
while (true) {
await Alm.delaySecond();
Pro.log('tick:${Alm.timeId()}');
}
}
Usage only Command Line #
- tested only linux and macos
$ dart example/app.dart
$ dart example/app.dart start
$ dart example/app.dart stop
$ dart example/app.dart restart
$ dart example/app.dart status
....