Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit ae8ea2a

Browse files
committed
readme tweaks
1 parent 9e75691 commit ae8ea2a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# cli_util
22

3-
Utilities to help in building Dart command-line apps.
3+
A utility to help in building Dart command-line apps.
44

5-
In particular, ``cli_util`` provides a simple, standardized way to get the current SDK directory. Useful, especially, when building client applications that interact with the Dart SDK (such as the [analyzer](https://pub.dartlang.org/packages/analyzer)).
6-
7-
## Install
8-
9-
```shell
10-
pub global activate cli_util
11-
```
5+
In particular, ``cli_util`` provides a simple, standardized way to get the
6+
current SDK directory. Useful, especially, when building client applications
7+
that interact with the Dart SDK (such as the [analyzer][analyzer]).
128

139
## Usage
1410

@@ -19,10 +15,9 @@ import 'package:cli_util/cli_util.dart';
1915
import 'package:path/path.dart' as path;
2016
2117
main(args) {
22-
2318
// Get sdk dir from cli_util
2419
Directory sdkDir = getSdkDir(args);
25-
20+
2621
// Do stuff... For example, print version string
2722
File versionFile = new File(path.join(sdkDir.path, 'version'));
2823
print(versionFile.readAsStringSync());
@@ -33,4 +28,5 @@ main(args) {
3328

3429
Please file feature requests and bugs at the [issue tracker][tracker].
3530

31+
[analyzer]: https://pub.dartlang.org/packages/analyzer
3632
[tracker]: https://github.com/dart-lang/cli_util/issues

0 commit comments

Comments
 (0)