Skip to content
Snippets Groups Projects
Verified Commit 64e446f7 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

move `remove-cache-prefix` to new `path.nu`

parent 7b44a886
No related branches found
No related tags found
No related merge requests found
use consts.nu use consts.nu
use path.nu [ "remove-cache-prefix" ]
use ../../.nushell error "error throw" use ../../.nushell error "error throw"
def remove-cache-prefix []: path -> string {
str replace $"($consts.CACHE)(char path_sep)" ''
}
# return experiment names following `$ARG_EXPERIMENT_FORMAT` # return experiment names following `$ARG_EXPERIMENT_FORMAT`
def get-experiments []: nothing -> list<string> { def get-experiments []: nothing -> list<string> {
$consts.CACHE $consts.CACHE
......
use consts.nu
export def remove-cache-prefix []: path -> string {
str replace $"($consts.CACHE)(char path_sep)" ''
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment