mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 20:15:27 +00:00
completions: hint generator to expand to file paths
This commit is contained in:
parent
c0e053136f
commit
7c6989de0e
@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
_This changelog was created after v0.3.1 was released. As a result, there may be slight inaccuracies with versions <= v0.3.1._
|
_This changelog was created after v0.3.1. As a result, there may be slight inaccuracies with prior versions._
|
||||||
|
|
||||||
Categories Used:
|
Categories Used:
|
||||||
|
|
||||||
@ -24,6 +24,10 @@ Categories Used:
|
|||||||
|
|
||||||
- Fix size unit inconsistency [\#502](https://github.com/ouch-org/ouch/pull/502) ([marcospb19](https://github.com/marcospb19))
|
- Fix size unit inconsistency [\#502](https://github.com/ouch-org/ouch/pull/502) ([marcospb19](https://github.com/marcospb19))
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
|
||||||
|
- Hint completions generator to expand file paths [\#508](https://github.com/ouch-org/ouch/pull/508) ([marcospb19](https://github.com/marcospb19))
|
||||||
|
|
||||||
## [0.4.2](https://github.com/ouch-org/ouch/compare/0.4.1...0.4.2)
|
## [0.4.2](https://github.com/ouch-org/ouch/compare/0.4.1...0.4.2)
|
||||||
|
|
||||||
### New Features
|
### New Features
|
||||||
|
@ -53,7 +53,7 @@ pub enum Subcommand {
|
|||||||
#[command(visible_alias = "c")]
|
#[command(visible_alias = "c")]
|
||||||
Compress {
|
Compress {
|
||||||
/// Files to be compressed
|
/// Files to be compressed
|
||||||
#[arg(required = true, num_args = 1..)]
|
#[arg(required = true, value_hint = ValueHint::FilePath)]
|
||||||
files: Vec<PathBuf>,
|
files: Vec<PathBuf>,
|
||||||
|
|
||||||
/// The resulting file. Its extensions can be used to specify the compression formats
|
/// The resulting file. Its extensions can be used to specify the compression formats
|
||||||
@ -78,18 +78,18 @@ pub enum Subcommand {
|
|||||||
#[command(visible_alias = "d")]
|
#[command(visible_alias = "d")]
|
||||||
Decompress {
|
Decompress {
|
||||||
/// Files to be decompressed
|
/// Files to be decompressed
|
||||||
#[arg(required = true, num_args = 1..)]
|
#[arg(required = true, num_args = 1.., value_hint = ValueHint::FilePath)]
|
||||||
files: Vec<PathBuf>,
|
files: Vec<PathBuf>,
|
||||||
|
|
||||||
/// Place results in a directory other than the current one
|
/// Place results in a directory other than the current one
|
||||||
#[arg(short = 'd', long = "dir", value_hint = ValueHint::DirPath)]
|
#[arg(short = 'd', long = "dir", value_hint = ValueHint::FilePath)]
|
||||||
output_dir: Option<PathBuf>,
|
output_dir: Option<PathBuf>,
|
||||||
},
|
},
|
||||||
/// List contents of an archive
|
/// List contents of an archive
|
||||||
#[command(visible_aliases = ["l", "ls"])]
|
#[command(visible_aliases = ["l", "ls"])]
|
||||||
List {
|
List {
|
||||||
/// Archives whose contents should be listed
|
/// Archives whose contents should be listed
|
||||||
#[arg(required = true, num_args = 1..)]
|
#[arg(required = true, num_args = 1.., value_hint = ValueHint::FilePath)]
|
||||||
archives: Vec<PathBuf>,
|
archives: Vec<PathBuf>,
|
||||||
|
|
||||||
/// Show archive contents as a tree
|
/// Show archive contents as a tree
|
||||||
|
Loading…
x
Reference in New Issue
Block a user