Skip to content

Commit

Permalink
Add KColorChooser as supported tool
Browse files Browse the repository at this point in the history
  • Loading branch information
data-man authored and sharkdp committed Aug 29, 2019
1 parent a11b8c9 commit 012529a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ pub fn build_cli() -> App<'static, 'static> {
- xcolor (https://github.com/Soft/xcolor)\n \
- grabc (https://www.muquit.com/muquit/software/grabc/grabc.html)\n \
- colorpicker (https://github.com/Jack12816/colorpicker)\n \
- chameleon (https://github.com/seebye/chameleon)")
- chameleon (https://github.com/seebye/chameleon)\n \
- KColorChooser (https://kde.org/applications/graphics/org.kde.kcolorchooser)")
)
.subcommand(
SubCommand::with_name("format")
Expand Down
6 changes: 6 additions & 0 deletions src/cli/colorpicker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ pub fn run_external_colorpicker() -> Result<String> {
version_args: vec!["-h"],
version_output_starts_with: b"",
},
ColorPickerTool {
command: "kcolorchooser",
args: vec!["--print"],
version_args: vec!["-v"],
version_output_starts_with: b"kcolorchooser",
},
];

for tool in &tools {
Expand Down

0 comments on commit 012529a

Please sign in to comment.