Skip to content
Snippets Groups Projects
Verified Commit 8b705ed7 authored by Louis's avatar Louis :fire:
Browse files

Update subcommand descriptions

parent 77bf6c37
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ use crate::{load_image, Format}; ...@@ -9,7 +9,7 @@ use crate::{load_image, Format};
/// Crunch is a set of utilities for quickly and easily processing a batch of files, either directly /// Crunch is a set of utilities for quickly and easily processing a batch of files, either directly
/// or by defining pipelines /// or by defining pipelines
#[derive(Parser, Debug, Clone, Serialize, Deserialize)] #[derive(Parser, Debug, Clone, Serialize, Deserialize)]
#[clap(name = "Crunch")] #[clap(name = "crunch")]
#[clap(author = "Louis Capitanchik <louis@microhacks.co.uk>")] #[clap(author = "Louis Capitanchik <louis@microhacks.co.uk>")]
#[clap(version = "0.5.0-beta.1")] #[clap(version = "0.5.0-beta.1")]
#[clap(about, long_about = None)] #[clap(about, long_about = None)]
......
...@@ -13,14 +13,14 @@ pub enum FlipDirection { ...@@ -13,14 +13,14 @@ pub enum FlipDirection {
Both, Both,
} }
/// Rotate an image clockwise by the given degree /// Flip an image along one or more axis
#[derive(Debug, Clone, Parser, Serialize, Deserialize)] #[derive(Debug, Clone, Parser, Serialize, Deserialize)]
#[clap(author, version = "0.3.0")] #[clap(author, version = "0.3.0")]
pub struct Flip { pub struct Flip {
/// The path to the spritesheet file /// The path to the image file
#[serde(default)] #[serde(default)]
pub input: String, pub input: String,
/// The path to write the extruded spritesheet /// The path to write the flipped image
#[serde(default)] #[serde(default)]
pub output: String, pub output: String,
......
...@@ -38,10 +38,10 @@ pub fn sort_by_hue(palette: &mut PixelPalette) { ...@@ -38,10 +38,10 @@ pub fn sort_by_hue(palette: &mut PixelPalette) {
#[derive(Parser, Clone, Serialize, Deserialize, Debug)] #[derive(Parser, Clone, Serialize, Deserialize, Debug)]
#[clap(author, version = "0.3.0")] #[clap(author, version = "0.3.0")]
pub struct Palette { pub struct Palette {
/// The path to the spritesheet file /// The path to the image file
#[serde(default)] #[serde(default)]
pub input: String, pub input: String,
/// The path to write the extruded spritesheet /// The path to write the palette data
#[serde(default)] #[serde(default)]
pub output: String, pub output: String,
......
...@@ -49,7 +49,7 @@ pub struct PipelineFile { ...@@ -49,7 +49,7 @@ pub struct PipelineFile {
pub pipelines: Vec<PipelineType>, pub pipelines: Vec<PipelineType>,
} }
/// Rotate an image clockwise by the given degree /// Execute a predefined pipeline
#[derive(Debug, Clone, Parser, Serialize, Deserialize)] #[derive(Debug, Clone, Parser, Serialize, Deserialize)]
#[clap(author, version = "0.3.0")] #[clap(author, version = "0.3.0")]
pub struct Pipeline { pub struct Pipeline {
......
...@@ -6,14 +6,14 @@ use serde::{Deserialize, Serialize}; ...@@ -6,14 +6,14 @@ use serde::{Deserialize, Serialize};
use crate::utils::{new_image, BasicRgba, OutputFormat, TypedOutputFormat}; use crate::utils::{new_image, BasicRgba, OutputFormat, TypedOutputFormat};
/// Rotate an image clockwise by the given degree /// Convert the colour space of an image to that of a given palette file
#[derive(Debug, Clone, Parser, Serialize, Deserialize)] #[derive(Debug, Clone, Parser, Serialize, Deserialize)]
#[clap(author, version = "0.3.0")] #[clap(author, version = "0.3.0")]
pub struct Remap { pub struct Remap {
/// The path to the spritesheet file /// The path to the image file
#[serde(default)] #[serde(default)]
pub input: String, pub input: String,
/// The path to write the extruded spritesheet /// The path to write the recoloured image
#[serde(default)] #[serde(default)]
pub output: String, pub output: String,
......
...@@ -9,14 +9,14 @@ fn one() -> f32 { ...@@ -9,14 +9,14 @@ fn one() -> f32 {
1.0 1.0
} }
/// Rotate an image clockwise by the given degree /// Resize an image by a scale factor
#[derive(Debug, Clone, Parser, Serialize, Deserialize)] #[derive(Debug, Clone, Parser, Serialize, Deserialize)]
#[clap(author, version = "0.3.0")] #[clap(author, version = "0.3.0")]
pub struct Scale { pub struct Scale {
/// The path to the spritesheet file /// The path to the image file
#[serde(default)] #[serde(default)]
pub input: String, pub input: String,
/// The path to write the extruded spritesheet /// The path to write the scaled image
#[serde(default)] #[serde(default)]
pub output: String, pub output: String,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment