dtg 1.0.0 copy "dtg: ^1.0.0" to clipboard
dtg: ^1.0.0 copied to clipboard

outdated

Dart to Go! An excellent utility provided with simplicity.

example/dtg_example.dart

import 'package:dtg/dtg.dart';

void main() async {
  final containerName = 'api';
  final command = 'docker ps -a | (read line; echo "\$line"; grep $containerName)';
  final lsHeader = ["CONTAINER ID", "IMAGE", "COMMAND", "CREATED", "STATUS", "PORTS", "NAMES"];
  final display = ["IMAGE", "NAMES", "STATUS", "PORTS"];
  final sh = await dg.sh.table(command: command, lsHeader: lsHeader, display: display);
  dg.print.table(sh);
}
0
likes
0
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Dart to Go! An excellent utility provided with simplicity.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on dtg