Skip to content

Commit

Permalink
Commit from GitHub Actions (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
mise-en-dev committed Jan 30, 2024
1 parent 64b2778 commit 2ec2b53
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 11 deletions.
2 changes: 2 additions & 0 deletions completions/_mise
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ __mise_run_cmd() {
'*'{-t,--tool}'=[Tool(s) to also add e.g.\: node@20 [email protected]]:tool:__mise_tool_versions' \
'(-j --jobs)'{-j,--jobs}'=[Number of tasks to run in parallel]:jobs:' \
'(-r --raw)'{-r,--raw}'[Read/write directly to stdin/stdout/stderr instead of by line]' \
'--timings[Shows elapsed time after each task]' \
'(-q --quiet)'{-q,--quiet}'[Suppress non-error messages]' \
'*'{-v,--verbose}'[Show extra output (use -vv for even more)]' \
'(-y --yes)'{-y,--yes}'[Answer yes to all confirmation prompts]'
Expand Down Expand Up @@ -793,6 +794,7 @@ __mise_task_run_cmd() {
'*'{-t,--tool}'=[Tool(s) to also add e.g.\: node@20 [email protected]]:tool:__mise_tool_versions' \
'(-j --jobs)'{-j,--jobs}'=[Number of tasks to run in parallel]:jobs:' \
'(-r --raw)'{-r,--raw}'[Read/write directly to stdin/stdout/stderr instead of by line]' \
'--timings[Shows elapsed time after each task]' \
'(-q --quiet)'{-q,--quiet}'[Suppress non-error messages]' \
'*'{-v,--verbose}'[Show extra output (use -vv for even more)]' \
'(-y --yes)'{-y,--yes}'[Answer yes to all confirmation prompts]'
Expand Down
4 changes: 2 additions & 2 deletions completions/mise.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3738,7 +3738,7 @@ _mise() {
return 0
;;
mise__run)
opts="-C -n -f -p -i -t -j -r -q -v -y -h --cd --dry-run --force --prefix --interleave --tool --jobs --raw --debug --log-level --quiet --trace --verbose --yes --help [TASK] [ARGS]..."
opts="-C -n -f -p -i -t -j -r -q -v -y -h --cd --dry-run --force --prefix --interleave --tool --jobs --raw --timings --debug --log-level --quiet --trace --verbose --yes --help [TASK] [ARGS]..."
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down Expand Up @@ -4509,7 +4509,7 @@ _mise() {
return 0
;;
mise__task__run)
opts="-C -n -f -p -i -t -j -r -q -v -y -h --cd --dry-run --force --prefix --interleave --tool --jobs --raw --debug --log-level --quiet --trace --verbose --yes --help [TASK] [ARGS]..."
opts="-C -n -f -p -i -t -j -r -q -v -y -h --cd --dry-run --force --prefix --interleave --tool --jobs --raw --timings --debug --log-level --quiet --trace --verbose --yes --help [TASK] [ARGS]..."
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down
2 changes: 2 additions & 0 deletions completions/mise.fish
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ complete -kxc mise -n "$fssf run" -s j -l jobs -d 'Number of tasks to run in par
complete -kxc mise -n "$fssf run" -s p -l prefix -d 'Print stdout/stderr by line, prefixed with the task'\''s label'
complete -kxc mise -n "$fssf run" -s r -l raw -d 'Read/write directly to stdin/stdout/stderr instead of by line'
complete -kxc mise -n "$fssf run" -a "(__mise_tasks)" -d 'Task to run'
complete -kxc mise -n "$fssf run" -l timings -d 'Shows elapsed time after each task'
complete -kxc mise -n "$fssf run" -s t -l tool -a "(__mise_tool_versions)" -d 'Tool(s) to also add e.g.: node@20 [email protected]'
# self-update
Expand Down Expand Up @@ -310,6 +311,7 @@ complete -kxc mise -n "$fssf task; and $fssf run" -s j -l jobs -d 'Number of tas
complete -kxc mise -n "$fssf task; and $fssf run" -s p -l prefix -d 'Print stdout/stderr by line, prefixed with the task'\''s label'
complete -kxc mise -n "$fssf task; and $fssf run" -s r -l raw -d 'Read/write directly to stdin/stdout/stderr instead of by line'
complete -kxc mise -n "$fssf task; and $fssf run" -a "(__mise_tasks)" -d 'Task to run'
complete -kxc mise -n "$fssf task; and $fssf run" -l timings -d 'Shows elapsed time after each task'
complete -kxc mise -n "$fssf task; and $fssf run" -s t -l tool -a "(__mise_tool_versions)" -d 'Tool(s) to also add e.g.: node@20 [email protected]'
Expand Down
6 changes: 6 additions & 0 deletions docs/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,9 @@ Options:
Read/write directly to stdin/stdout/stderr instead of by line
Configure with `raw` config or `MISE_RAW` env var
--timings
Shows elapsed time after each task
Examples:
$ mise run lint
Runs the "lint" task. This needs to either be defined in .mise.toml
Expand Down Expand Up @@ -1324,6 +1327,9 @@ Options:
Read/write directly to stdin/stdout/stderr instead of by line
Configure with `raw` config or `MISE_RAW` env var
--timings
Shows elapsed time after each task
Examples:
$ mise run lint
Runs the "lint" task. This needs to either be defined in .mise.toml
Expand Down
6 changes: 3 additions & 3 deletions src/cli/activate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ impl Activate {
Ok(())
}

fn activate_shims(&self, shell: &dyn Shell, mise_bin: &Path) -> () {
fn activate_shims(&self, shell: &dyn Shell, mise_bin: &Path) {
let exe_dir = mise_bin.parent().unwrap();
miseprint!("{}", self.prepend_path(shell, exe_dir));
miseprint!("{}", self.prepend_path(shell, &*dirs::SHIMS));
miseprint!("{}", self.prepend_path(shell, &dirs::SHIMS));
}

fn activate(&self, shell: &dyn Shell, mise_bin: &Path) -> () {
fn activate(&self, shell: &dyn Shell, mise_bin: &Path) {
let mut flags = vec![];
if self.quiet {
flags.push(" --quiet");
Expand Down
3 changes: 1 addition & 2 deletions src/shell/bash.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::path::{Path, PathBuf};
use std::path::Path;

use crate::config::Settings;
use crate::shell::Shell;
Expand Down Expand Up @@ -96,7 +96,6 @@ impl Shell for Bash {

#[cfg(test)]
mod tests {
use std::path::PathBuf;

use crate::test::replace_path;

Expand Down
2 changes: 1 addition & 1 deletion src/shell/fish.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::path::{Path, PathBuf};
use std::path::Path;

use crate::config::Settings;
use crate::shell::Shell;
Expand Down
2 changes: 1 addition & 1 deletion src/shell/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::fmt::{Display, Formatter};
use std::path::{Path, PathBuf};
use std::path::Path;

use crate::env;

Expand Down
2 changes: 1 addition & 1 deletion src/shell/xonsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl Shell for Xonsh {
}

fn prepend_env(&self, k: &str, v: &str) -> String {
let v = xonsh_escape_sq(&v);
let v = xonsh_escape_sq(v);
formatdoc! {r#"
from os import environ
from xonsh.built_ins import XSH
Expand Down
2 changes: 1 addition & 1 deletion src/shell/zsh.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::path::{Path, PathBuf};
use std::path::Path;

use crate::config::Settings;
use crate::shell::bash::Bash;
Expand Down

0 comments on commit 2ec2b53

Please sign in to comment.