Fixes suggested by pub.dev.
This commit is contained in:
parent
41b24cd6da
commit
7854faaa9c
5 changed files with 10 additions and 6 deletions
11
README.md
11
README.md
|
@ -1,15 +1,15 @@
|
|||
[](http://opensource.org/licenses/BSD-3-Clause)
|
||||
[](https://opensource.org/licenses/BSD-3-Clause)
|
||||
[](https://github.com/ethauvin/dcat/actions/workflows/dart.yml)
|
||||
[](https://codecov.io/gh/ethauvin/dcat)
|
||||
[](https://pub.dev/packages/dcat)
|
||||
|
||||
# dcat: Concatenate File(s) to Standard Output or File
|
||||
|
||||
A **cat** command-line and library implementation in [Dart](https://dart.dev/), inspired by the [Write command-line apps sample code](https://dart.dev/tutorials/server/cmdline).
|
||||
A [Dart](https://dart.dev/) command-line and library implementation of the standard **cat** Unix utility, inspired by the [Write command-line apps sample code](https://dart.dev/tutorials/server/cmdline).
|
||||
|
||||
## Synopsis
|
||||
|
||||
**dcat** copies each file, or standard input if none are given, to standard output or file.
|
||||
**dcat** sequentially reads files, or standard input if none are given, writing them to standard output or file.
|
||||
|
||||
## Command-Line Usage
|
||||
|
||||
|
@ -31,8 +31,8 @@ With no FILE, or when FILE is -, read standard input.
|
|||
-t, --show-nonprinting-tabs equivalent to -vT
|
||||
-T, --show-tabs display TAB characters as ^I
|
||||
-s, --squeeze-blank suppress repeated empty output lines
|
||||
--version output version information and exit
|
||||
-v, --show-nonprinting use ^ and M- notation, except for LFD and TAB
|
||||
--version output version information and exit
|
||||
|
||||
Examples:
|
||||
dcat f - g Output f's contents, then standard input, then g's contents.
|
||||
|
@ -40,7 +40,7 @@ Examples:
|
|||
```
|
||||
## Compile Standalone Application
|
||||
|
||||
### *nix
|
||||
### Linux / MacOS
|
||||
```sh
|
||||
dart compile exe -o bin/dcat bin/dcat.dart
|
||||
```
|
||||
|
@ -66,6 +66,7 @@ if (result.isFailure) {
|
|||
}
|
||||
}
|
||||
```
|
||||
[View Full Instructions](https://pub.dev/packages/dcat/install)
|
||||
|
||||
The `cat` function supports the following parameters:
|
||||
|
||||
|
|
1
analyze.sh
Executable file
1
analyze.sh
Executable file
|
@ -0,0 +1 @@
|
|||
dart analyze .
|
1
format.sh
Executable file
1
format.sh
Executable file
|
@ -0,0 +1 @@
|
|||
dart format bin lib test example
|
|
@ -19,6 +19,7 @@ const _lineFeed = 10;
|
|||
class CatError {
|
||||
/// The error message.
|
||||
String message;
|
||||
|
||||
/// The file path, if any.
|
||||
String? path;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: dcat
|
||||
description: Concatenate file(s) to standard output or file
|
||||
description: An implementation of the standard cat Unix utility that concatenates file(s) to standard output or file.
|
||||
version: 1.0.0
|
||||
repository: https://github.com/ethauvin/dcat
|
||||
issue_tracker: https://github.com/ethauvin/dcat/issues
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue