Skip to content

Commit

Permalink
Use .run from cli
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 18, 2023
1 parent 9b9646e commit dcd1404
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/finalize-version.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ finalize_version_impl <- function(push, suggest_finalize = TRUE) {
command <- "fledge::finalize_version()"
}
if (fledge_chatty()) {
cli_alert_warning("Call {.code {command}}.")
cli_alert_warning("Run {.run {command}}.")
}
send_to_console(command)
}
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/bump_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
-- Tagging Version --
> Creating tag v0.0.0.9001 with tag message derived from 'NEWS.md'.
! Call `fledge::finalize_version(push = TRUE)`.
! Run `fledge::finalize_version(push = TRUE)`.

---

Expand Down Expand Up @@ -58,7 +58,7 @@
-- Tagging Version --
> Creating tag v0.0.0.9002 with tag message derived from 'NEWS.md'.
! Call `fledge::finalize_version(push = TRUE)`.
! Run `fledge::finalize_version(push = TRUE)`.

# bump_version() works -- not dev

Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/demo/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ fledge::bump_version()
## -- Tagging Version --
##
## > Creating tag v0.0.0.9001 with tag message derived from 'NEWS.md'.
## ! Call `fledge::finalize_version(push = TRUE)`.
## ! Run `fledge::finalize_version(push = TRUE)`.
```

The new version number is 0.0.0.9001.
Expand Down Expand Up @@ -475,7 +475,7 @@ fledge::bump_version()
## -- Tagging Version --
##
## > Creating tag v0.0.0.9002 with tag message derived from 'NEWS.md'.
## ! Call `fledge::finalize_version(push = TRUE)`.
## ! Run `fledge::finalize_version(push = TRUE)`.
news <- readLines("NEWS.md")
writeLines(news)
## <!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->
Expand Down Expand Up @@ -633,7 +633,7 @@ fledge::bump_version()
## -- Tagging Version --
##
## > Creating tag v0.0.1.9000 with tag message derived from 'NEWS.md'.
## ! Call `fledge::finalize_version(push = TRUE)`.
## ! Run `fledge::finalize_version(push = TRUE)`.
news <- readLines("NEWS.md")
```

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/unbump_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
-- Tagging Version --
> Creating tag v0.0.0.9001 with tag message derived from 'NEWS.md'.
! Call `fledge::finalize_version()`.
! Run `fledge::finalize_version()`.
Code
unbump_version()
Message
Expand Down Expand Up @@ -58,5 +58,5 @@
-- Tagging Version --
> Creating tag v0.0.0.9001 with tag message derived from 'NEWS.md'.
! Call `fledge::finalize_version()`.
! Run `fledge::finalize_version()`.

0 comments on commit dcd1404

Please sign in to comment.