uribo

Crates.iouribo
lib.rsuribo
version0.6.0
sourcesrc
created_at2023-11-26 07:53:15.471194
updated_at2024-01-28 05:14:34.994657
descriptionA command-line tool for executing predefined commands
homepagehttps://github.com/sile/uribo
repositoryhttps://github.com/sile/uribo
max_upload_size
id1048844
size19,104
Takeru Ohta (sile)

documentation

README

uribo

uribo Documentation Actions Status License

A command line tool that executes a shell command defined in a $PWD/(..)*/.uribo file.

// Define and run the "hello" command.
$ uribo run hello
"hello" command is not defined

$ uribo put hello -- echo "Hello World!"
$ cat .uribo
{
  "hello": {
    "command": "echo",
    "args": [
      "Hello World!"
    ]
  }
}

$ uribo run hello
Hello World!

// If the specified command is not found in the $PWD/.uribo file,
// the parent directories will be searched.
$ echo '{"ver": {"command": "uribo", "args": ["--version"]}}' > ../.uribo
$ uribo run ver
uribo 0.2.0

Recommended Fish shell configuration

set -x URIBO_DEFAULT_CONFIG_PATH "$HOME/.uribo"

function fish_command_not_found
    if uribo find $argv[1] > /dev/null 2> /dev/null
        uribo run $argv
    else
        __fish_default_command_not_found_handler $argv[1]
    end
end
Commit count: 19

cargo fmt