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

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
130
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Dart to Go! An excellent utility provided with simplicity.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on dtg