Skip to content

Commit

Permalink
Prepare version 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Nov 13, 2023
1 parent 05037d8 commit 8f927e4
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 49 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## [Unreleased]

## [0.5.0] - 2023-11-13

### Added

- The 'await' command will now display the date and time when the Maven repos were last checked. This
will only be displayed for interactive terminals, and can be disabled with `-q`/`--quiet` flag.


## [0.4.1] - 2022-02-03

### Fixed
Expand Down Expand Up @@ -52,7 +60,8 @@
- Initial release


[Unreleased]: https://github.com/JakeWharton/dependency-watch/compare/0.4.1...HEAD
[Unreleased]: https://github.com/JakeWharton/dependency-watch/compare/0.5.0...HEAD
[0.5.0]: https://github.com/JakeWharton/dependency-watch/releases/tag/0.5.0
[0.4.1]: https://github.com/JakeWharton/dependency-watch/releases/tag/0.4.1
[0.4.0]: https://github.com/JakeWharton/dependency-watch/releases/tag/0.4.0
[0.3.0]: https://github.com/JakeWharton/dependency-watch/releases/tag/0.3.0
Expand Down
100 changes: 52 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ the ID to the container using the `HEALTHCHECK_ID` environment variable.
version: '2'
services:
dependency-watch:
image: jakewharton/dependency-watch:0.4
image: jakewharton/dependency-watch:0.5
restart: unless-stopped
volumes:
- /path/to/config:/config
Expand All @@ -118,76 +118,80 @@ services:
```
$ dependency-watch --help
Usage: dependency-watch [OPTIONS] COMMAND [ARGS]...
Usage: dependency-watch [<options>] <command> [<args>]...

Options:
-h, --help Show this message and exit

Commands:
await Wait for an artifact to appear on Maven central then exit
notify Monitor Maven coordinates for new versions
await Wait for an artifact to appear in a Maven repository then exit
notify Monitor Maven coordinates in a Maven repository for new versions
```
```
$ dependency-watch await --help
Usage: dependency-watch await [OPTIONS] COORDINATES
Usage: dependency-watch await [<options>] <coordinates>

Wait for an artifact to appear in a Maven repository then exit

Options:
--interval DURATION Amount of time between checks in ISO8601 duration
format (default 1 minute)
--ifttt URL IFTTT webhook URL to trigger (see
https://ifttt.com/maker_webhooks)
--repo URL URL or well-known ID of maven repository to check
(default is "MavenCentral"). Available well-known IDs:
"MavenCentral", "GoogleMaven".
-h, --help Show this message and exit
--interval=<duration> Amount of time between checks in ISO8601 duration
format (default 1 minute)
--ifttt=<url> IFTTT webhook URL to trigger (see
https://ifttt.com/maker_webhooks)
--repo=<url> URL or well-known ID of maven repository to check
(default is "MavenCentral"). Available well-known IDs:
"MavenCentral", "GoogleMaven".

-q, --quiet Hide 'Last checked' output
-h, --help Show this message and exit

Arguments:
COORDINATES Maven coordinates (e.g., 'com.example:example:1.0.0')
<coordinates> Maven coordinates (e.g., 'com.example:example:1.0.0')
```
```
$ dependency-watch notify --help
Usage: dependency-watch notify [OPTIONS] CONFIG
Usage: dependency-watch notify [<options>] <config>

Monitor Maven coordinates in a Maven repository for new versions

Options:
--interval DURATION Amount of time between checks in ISO8601 duration
format (default 1 minute)
--ifttt URL IFTTT webhook URL to trigger (see
https://ifttt.com/maker_webhooks)
--data PATH Directory into which already-seen versions are tracked
(default in-memory)
--watch Continually monitor for new versions every '--interval'
-h, --help Show this message and exit
--interval=<duration> Amount of time between checks in ISO8601 duration
format (default 1 minute)
--ifttt=<url> IFTTT webhook URL to trigger (see
https://ifttt.com/maker_webhooks)
--data=<path> Directory into which already-seen versions are tracked
(default in-memory)
--watch Continually monitor for new versions every '--interval'
-h, --help Show this message and exit

Arguments:
CONFIG TOML file containing repositories and coordinates to watch

Format:

[MavenCentral]
coordinates = [
"com.example.ping:pong",
"com.example.fizz:buzz",
]

[GoogleMaven]
coordinates = [
"com.google:example",
]

[CustomRepo]
name = "Custom Repo" # Optional
host = "https://example.com/repo/"
coordinates = [
"com.example:thing",
]

"MavenCentral" and "GoogleMaven" are two optional well-known
repositories which only require a list of coordinates. Other
repositories also require a host and can specify an optional name.
<config> TOML file containing repositories and coordinates to watch

Format:

╭──────────────────────────────────╮
│[MavenCentral] │
│coordinates = [ │
│ "com.example.ping:pong", │
│ "com.example.fizz:buzz", │
│] │
│ │
│[GoogleMaven] │
│coordinates = [ │
│ "com.google:example", │
│] │
│ │
│[CustomRepo] │
│name = "Custom Repo" # Optional │
│host = "https://example.com/repo/"│
│coordinates = [ │
│ "com.example:thing", │
│] │
╰──────────────────────────────────╯

"MavenCentral" and "GoogleMaven" are two optional well-known
repositories which only require a list of coordinates. Other
repositories also require a host and can specify an optional name.
```


Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/watch/dependency/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ private class AwaitCommand : DependencyWatchCommand(
.default(MAVEN_CENTRAL_ID)

private val quiet by option("--quiet", "-q")
.help("Hide 'Last checked' output")
.flag()

private val coordinates by argument("COORDINATES", help = "Maven coordinates (e.g., 'com.example:example:1.0.0')")
Expand Down

0 comments on commit 8f927e4

Please sign in to comment.