Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
0408fe856d
|
|||
4e3b711567
|
|||
7f0bff57eb
|
|||
92f167e7e8
|
|||
c7ebd6350e
|
|||
d7d55d24f5
|
|||
6381c189cb
|
|||
d0568e48ec
|
|||
f66a6c858d
|
|||
267d546d2e
|
|||
87c9c36f6c
|
|||
2f19707e94
|
5
.drone.yml
Normal file
5
.drone.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
kind: template
|
||||
load: bust_rustbin_default_template.yaml
|
||||
name: toolkit
|
||||
data:
|
||||
binName: toolkit
|
8
.github/workflows/release-published.yml
vendored
8
.github/workflows/release-published.yml
vendored
@@ -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"
|
||||
"sourcegraph/src-cli/src-cli"
|
||||
|
||||
# Custom install command for your formula.
|
||||
# Required - string.
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -110,5 +110,5 @@ jobs:
|
||||
*.deb
|
||||
*.tar.gz
|
||||
*.zip
|
||||
name: ${{ steps.get_version.outputs.value }}
|
||||
name: v${{ steps.get_version.outputs.value }}
|
||||
tag_name: v${{ steps.get_version.outputs.value }}
|
||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -316,7 +316,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "toolkit"
|
||||
version = "0.1.2"
|
||||
version = "0.1.8"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"eyre",
|
||||
|
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "toolkit"
|
||||
description = "Toolkit is an opinionated toolkit complementing a personal development workflow. Many of the commands are quite verbose, and well suited for adding to your shell toolbelt"
|
||||
version = "0.1.2"
|
||||
version = "0.1.8"
|
||||
edition = "2021"
|
||||
license-file = "LICENSE"
|
||||
authors = ["Kasper J. Hermansen contact@kjuulh.io"]
|
||||
|
@@ -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(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user