Skip to content

Commit

Permalink
Add new dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kjuulh committed Dec 18, 2022
1 parent 2f19707 commit 87c9c36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ jobs:

# Custom dependencies in case other formulas are needed to build the current one.
# Optional - multiline string.
#depends_on: |
depends_on: |
fzf
gh
dust
bottom
procs
src-cli
# Custom install command for your formula.
# Required - string.
Expand Down
7 changes: 4 additions & 3 deletions crates/stats/src/perf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ pub struct Perf;

impl Perf {
fn run() -> eyre::Result<()> {
if let Err(_) = util::shell::run_with_input_and_output(&["ytop", "--version"], "".into()) {
if let Err(_) = util::shell::run_with_input_and_output(&["bottom", "--version"], "".into())
{
return Err(eyre::anyhow!(
"could not find ytop, please install or add to PATH"
"could not find bottom, please install or add to PATH"
));
}

util::shell::run(&["ytop"], None)?;
util::shell::run(&["bottom"], None)?;

Ok(())
}
Expand Down

0 comments on commit 87c9c36

Please sign in to comment.