Skip to content

Commit

Permalink
release: 0.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Sep 15, 2023
2 parents 113dc2a + 3dba568 commit c5bd55b
Show file tree
Hide file tree
Showing 18 changed files with 55 additions and 33 deletions.
6 changes: 3 additions & 3 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Project Dependencies
Package: fyi
Version: 0.11.2
Generated: 2023-08-24 18:00:37 UTC
Version: 0.11.3
Generated: 2023-09-15 20:20:07 UTC

| Package | Version | Author(s) | License |
| ---- | ---- | ---- | ---- |
| [argyle](https://github.com/Blobfolio/argyle) | 0.6.8 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [const_fn](https://github.com/taiki-e/const_fn) | 0.4.9 | | Apache-2.0 or MIT |
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.5.1 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.11.2 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.11.3 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [num-traits](https://github.com/rust-num/num-traits) | 0.2.16 | The Rust Project Developers | Apache-2.0 or MIT |
| [tz-rs](https://github.com/x-hgg-x/tz-rs) | 0.6.14 | x-hgg-x | Apache-2.0 or MIT |
| [utc2k](https://github.com/Blobfolio/utc2k) | 0.6.1 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
2 changes: 1 addition & 1 deletion fyi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fyi"
version = "0.11.2"
version = "0.11.3"
license = "WTFPL"
authors = ["Blobfolio, LLC. <[email protected]>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion fyi_msg/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fyi_msg"
version = "0.11.2"
version = "0.11.3"
authors = ["Blobfolio, LLC. <[email protected]>"]
edition = "2021"
rust-version = "1.70"
Expand Down
22 changes: 22 additions & 0 deletions fyi_msg/src/progress/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,21 @@ impl ProglessInner {
}
}

#[inline]
/// # Increment Done by N.
///
/// Increase the completed count by `n`. This is safer to use than `set_done()`
/// and more efficient than calling `increment()` a million times in a row.
fn increment_n(&self, n: u32) {
if self.running() {
let done = self.done.fetch_add(n, SeqCst) + n;
if done >= self.total() { self.stop() }
else {
self.flags.fetch_or(TICK_DONE | TICK_PERCENT | TICK_BAR, SeqCst);
}
}
}

/// # Remove a task.
///
/// This is the equal and opposite companion to `add`. Calling this will
Expand Down Expand Up @@ -1138,6 +1153,13 @@ impl Progless {
/// See the various examples all over this page for more information.
pub fn increment(&self) { self.inner.increment(); }

#[inline]
/// # Increment Done by N.
///
/// Increase the completed count by `n`. This is safer to use than `set_done()`
/// and more efficient than calling `increment()` a million times in a row.
pub fn increment_n(&self, n: u32) { self.inner.increment_n(n); }

#[inline]
/// # Remove a task.
///
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-blank.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI BLANK" "1" "August 2023" "blank v0.11.2" "User Commands"
.TH "FYI BLANK" "1" "September 2023" "blank v0.11.3" "User Commands"
.SH NAME
blank \- Manual page for blank v0.11.2.
blank \- Manual page for blank v0.11.3.
.SH DESCRIPTION
Print blank line(s).
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-confirm.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI CONFIRM" "1" "August 2023" "confirm v0.11.2" "User Commands"
.TH "FYI CONFIRM" "1" "September 2023" "confirm v0.11.3" "User Commands"
.SH NAME
confirm \- Manual page for confirm v0.11.2.
confirm \- Manual page for confirm v0.11.3.
.SH DESCRIPTION
Ask a Yes/No question using the built\-in prefix "confirm".
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-crunched.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI CRUNCHED" "1" "August 2023" "crunched v0.11.2" "User Commands"
.TH "FYI CRUNCHED" "1" "September 2023" "crunched v0.11.3" "User Commands"
.SH NAME
crunched \- Manual page for crunched v0.11.2.
crunched \- Manual page for crunched v0.11.3.
.SH DESCRIPTION
Crunched: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-debug.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI DEBUG" "1" "August 2023" "debug v0.11.2" "User Commands"
.TH "FYI DEBUG" "1" "September 2023" "debug v0.11.3" "User Commands"
.SH NAME
debug \- Manual page for debug v0.11.2.
debug \- Manual page for debug v0.11.3.
.SH DESCRIPTION
Debug: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-done.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI DONE" "1" "August 2023" "done v0.11.2" "User Commands"
.TH "FYI DONE" "1" "September 2023" "done v0.11.3" "User Commands"
.SH NAME
done \- Manual page for done v0.11.2.
done \- Manual page for done v0.11.3.
.SH DESCRIPTION
Done: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-error.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI ERROR" "1" "August 2023" "error v0.11.2" "User Commands"
.TH "FYI ERROR" "1" "September 2023" "error v0.11.3" "User Commands"
.SH NAME
error \- Manual page for error v0.11.2.
error \- Manual page for error v0.11.3.
.SH DESCRIPTION
Error: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-info.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI INFO" "1" "August 2023" "info v0.11.2" "User Commands"
.TH "FYI INFO" "1" "September 2023" "info v0.11.3" "User Commands"
.SH NAME
info \- Manual page for info v0.11.2.
info \- Manual page for info v0.11.3.
.SH DESCRIPTION
Info: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-notice.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI NOTICE" "1" "August 2023" "notice v0.11.2" "User Commands"
.TH "FYI NOTICE" "1" "September 2023" "notice v0.11.3" "User Commands"
.SH NAME
notice \- Manual page for notice v0.11.2.
notice \- Manual page for notice v0.11.3.
.SH DESCRIPTION
Notice: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-print.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI PRINT" "1" "August 2023" "print v0.11.2" "User Commands"
.TH "FYI PRINT" "1" "September 2023" "print v0.11.3" "User Commands"
.SH NAME
print \- Manual page for print v0.11.2.
print \- Manual page for print v0.11.3.
.SH DESCRIPTION
Print a message without a prefix (or with a custom one).
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-review.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI REVIEW" "1" "August 2023" "review v0.11.2" "User Commands"
.TH "FYI REVIEW" "1" "September 2023" "review v0.11.3" "User Commands"
.SH NAME
review \- Manual page for review v0.11.2.
review \- Manual page for review v0.11.3.
.SH DESCRIPTION
Review: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-success.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI SUCCESS" "1" "August 2023" "success v0.11.2" "User Commands"
.TH "FYI SUCCESS" "1" "September 2023" "success v0.11.3" "User Commands"
.SH NAME
success \- Manual page for success v0.11.2.
success \- Manual page for success v0.11.3.
.SH DESCRIPTION
Success: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-task.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI TASK" "1" "August 2023" "task v0.11.2" "User Commands"
.TH "FYI TASK" "1" "September 2023" "task v0.11.3" "User Commands"
.SH NAME
task \- Manual page for task v0.11.2.
task \- Manual page for task v0.11.3.
.SH DESCRIPTION
Task: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi-warning.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI WARNING" "1" "August 2023" "warning v0.11.2" "User Commands"
.TH "FYI WARNING" "1" "September 2023" "warning v0.11.3" "User Commands"
.SH NAME
warning \- Manual page for warning v0.11.2.
warning \- Manual page for warning v0.11.3.
.SH DESCRIPTION
Warning: Hello World
.SS USAGE:
Expand Down
4 changes: 2 additions & 2 deletions release/man/fyi.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "FYI" "1" "August 2023" "FYI v0.11.2" "User Commands"
.TH "FYI" "1" "September 2023" "FYI v0.11.3" "User Commands"
.SH NAME
FYI \- Manual page for fyi v0.11.2.
FYI \- Manual page for fyi v0.11.3.
.SH DESCRIPTION
A dead\-simple CLI status message printer for use in BASH scripts, etc.
.SS USAGE:
Expand Down

0 comments on commit c5bd55b

Please sign in to comment.