pretty-please 0.1.0

The polite sudo.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub const INIT: &str = r#"def --wrapped pls [...args: string] {
  if ($args | is-empty) {
    let previous = (history | last 1 | get command | first | default "")

    if (($previous | str trim) | is-empty) {
      ^pls --history-command $previous
    } else {
      nu -c $'^pls ($previous)'
    }
  } else {
    ^pls ...$args
  }
}
"#;