#path #cli-interface #module #command #manipulates

app filenametool

Manipulates paths. A CLI interface to Rust's std::path module.

2 releases

0.2.1 Jul 8, 2022
0.2.0 Jun 29, 2022

#66 in #cli-interface

MIT license

5KB
66 lines

Filename Tool

A CLI program to manipulate paths and file names. In a nutshell, this is a simple wrapper around Rust's std::path, exposing the library with a CLI interface.

Command Arguments Description
filename path Get the filename
is-absolute path Whether the path is an absolute path
parent path Return the parent of the input
stem path Get the filename excluding the extension
with-suffix path, suffix Get the filename with a different suffix

Installation

Filename Tool can be installed via cargo:

cargo install filenametool

Build

Simply clone this repository and run cargo build. There's no external dependencies.

Dependencies

~3MB
~57K SLoC