Implement image resizing and grayscale conversion
This commit is contained in:
parent
0538924f3f
commit
7dadd7b7f7
4 changed files with 108 additions and 9 deletions
14
cmd/root.go
14
cmd/root.go
|
|
@ -27,13 +27,11 @@ import (
|
|||
// rootCmd represents the base command when called without any subcommands
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "inkpot-cli",
|
||||
Short: "A brief description of your application",
|
||||
Long: `A longer description that spans multiple lines and likely contains
|
||||
examples and usage of using your application. For example:
|
||||
|
||||
Cobra is a CLI library for Go that empowers applications.
|
||||
This application is a tool to generate the needed files
|
||||
to quickly create a Cobra application.`,
|
||||
Short: "Convert images for e-ink displays",
|
||||
Long: `A command-line-tool that can be used to prepare images by
|
||||
resizing them, rotating them and converting them to 16-color
|
||||
grayscale so they can be comfortably displayed on e-ink
|
||||
displays powered by the epdiy driver.`,
|
||||
// Uncomment the following line if your bare application
|
||||
// has an action associated with it:
|
||||
// Run: func(cmd *cobra.Command, args []string) { },
|
||||
|
|
@ -57,7 +55,7 @@ func init() {
|
|||
|
||||
// Cobra also supports local flags, which will only run
|
||||
// when this action is called directly.
|
||||
rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
|
||||
// rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue