dcat 1.0.1 copy "dcat: ^1.0.1" to clipboard
dcat: ^1.0.1 copied to clipboard

An implementation of the standard cat Unix utility that concatenates file(s) to standard output or file.

example/example.dart

import 'dart:io';

import 'package:dcat/dcat.dart';

// Usage: dart example.dart file...
Future<void> main(List<String> arguments) async {
  // Display the file(s) with line numbers to the standard output
  final result = await cat(arguments, stdout, showLineNumbers: true);
  if (result.isFailure) {
    for (final error in result.errors) {
      print("Error with '${error.path}': ${error.message}");
    }
  }
}
2
likes
160
points
43
downloads

Documentation

API reference

Publisher

verified publisherthauvin.net

Weekly Downloads

An implementation of the standard cat Unix utility that concatenates file(s) to standard output or file.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

args, indent

More

Packages that depend on dcat