Refactor arguments of path subcommands & Add path join subcommand (#3123)

* Refactor path subcommand argument handling

DefaultArguments are no longer passed to each subcommand. Instead, each
subcommand has its own Path<xxx>Arguments. This means that it is no
longer necessary to edit every single path subcommand source file when
changing the arguments struct.

* Add new path join subcommand

Makes it easier to create new paths. It's just a wrapper around Rust's
Path.join().
This commit is contained in:
Jakub Žádník
2021-03-04 09:04:56 +02:00
committed by GitHub
parent 0b71e45072
commit 1d1ec4727a
13 changed files with 228 additions and 96 deletions

View File

@ -4,6 +4,7 @@ mod exists;
mod expand;
mod extension;
mod filestem;
mod join;
mod type_;
use std::path::MAIN_SEPARATOR;