Module rust_utils::utils

source ·
Expand description

Miscellaneous convenience functions

These functions make some menial tasks a little easier to do, like getting the executable’s name, or running a command

Structs

Functions

  • Alphabetizes a vector of strings
  • Capitalize the first letter in a string
  • Get the name of the executable
  • Get the name of the file/directory from a file path
  • Show a message and get the user’s input from the standard input
  • Gets the parent directory from a file path
  • Run a command and return the output, status code, and whether the command succeeded or not
  • Spawn a detached process