Skip to content

Commit 0857d53

Browse files
authored
[cli_util] Publish 0.5.0 (#2384)
1 parent 8c23de8 commit 0857d53

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

pkgs/cli_util/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
## 0.5.0-wip
1+
## 0.5.0
22

33
- Add `BaseDirectories` class and deprecate `applicationConfigHome`.
4+
- Removed unused `package:meta` dependency.
5+
- Require Dart 3.4.
46

57
## 0.4.2
68

pkgs/cli_util/lib/cli_util.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ String getSdkPath() => sdkPath;
4343
///
4444
/// [1]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
4545
/// [2]: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW1
46-
@Deprecated('Use BaseDirectories(tool: productName).configHome() instead.')
46+
@Deprecated('Use BaseDirectories(productName).configHome instead.')
4747
String applicationConfigHome(String productName) =>
4848
path.join(_configHome, productName);
4949

pkgs/cli_util/lib/src/base_directories.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import '../cli_util.dart';
1010

1111
/// The standard system paths for a Dart tool.
1212
///
13-
/// These paths respects the following directory standards:
13+
/// These paths respect the following directory standards:
1414
///
1515
/// - On Linux, the [XDG Base Directory
1616
/// Specification](https://specifications.freedesktop.org/basedir-spec/latest/).
@@ -150,7 +150,7 @@ final class BaseDirectories {
150150
/// - on **Mac OS**:
151151
/// - `$HOME/Library/Caches/TemporaryItems/<tool>`
152152
/// - on **Linux**:
153-
/// - `$XDG_RUNTIME_HOME/<tool>` if `$XDG_RUNTIME_HOME` is defined, and
153+
/// - `$XDG_RUNTIME_DIR/<tool>` if `$XDG_RUNTIME_DIR` is defined, and
154154
/// - `null` otherwise.
155155
///
156156
/// The directory won't be created, the method merely returns the recommended
@@ -166,12 +166,12 @@ final class BaseDirectories {
166166

167167
/// Path of the directory where the tool will place its state.
168168
///
169-
/// The state directory is likely not backed up or synchronized accross
169+
/// The state directory is likely not backed up or synchronized across
170170
/// devices by the OS. For data that may be backed up and synchronized, use
171171
/// [dataHome] instead.
172172
///
173173
/// This is a location appropriate for storing data which is either not
174-
/// important enougn, not small enough, or not portable enough to store in
174+
/// important enough, not small enough, or not portable enough to store in
175175
/// [dataHome]. For example: logs and indices.
176176
///
177177
/// The directory location depends on the current [Platform.operatingSystem]:
@@ -247,7 +247,7 @@ final class BaseDirectories {
247247

248248
switch (dir) {
249249
case _XdgBaseDirectoryKind.runtime:
250-
// Applications should chose a different directory and print a warning.
250+
// Applications should choose a different directory and print a warning.
251251
return null;
252252
case _XdgBaseDirectoryKind.cache:
253253
return path.join(_home, '.cache');

pkgs/cli_util/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: cli_util
2-
version: 0.5.0-wip
2+
version: 0.5.0
33
description: A library to help in building Dart command-line apps.
44
repository: https://github.com/dart-lang/tools/tree/main/pkgs/cli_util
55
issue_tracker: https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acli_util
@@ -8,7 +8,6 @@ environment:
88
sdk: ^3.4.0
99

1010
dependencies:
11-
meta: ^1.7.0
1211
path: ^1.8.0
1312

1413
dev_dependencies:

0 commit comments

Comments
 (0)