Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Supported is a map containing file extensions that should be // supported. Modify before command is executed to set the extensions // that should be supported. Supported map[string]struct{} // ImageFiles contains the filepaths that the user has specified. // This will be used when user specifies more than 1 image. ImageFiles []string = nil // RootCmd is the root cobra command that runs the image viewer. RootCmd = &cobra.Command{ Use: "termage {<FILE | DIRECTORY> | <FILES...>}", Short: "Browse image files as ASCII in your terminal", Long: heredoc.Doc(` This application is a tool to view your image files as ASCII art without leaving your terminal. If a directory is passed, you will browse all images in that directory. If a single image file is passed, you will browse all images in the same directory as that image. If multiple files are passed, then you will browse specifically those files. `), Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { ImageFiles = args mainFunc(ImageFiles, Supported) }, Version: "0.6.2", } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.