diff --git a/README.md b/README.md index ff3457dc..a33c3bf8 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,27 @@ $ go get github.com/toshimaru/nyan $ nyan FILE ``` +## Available Themes + +- abap +- dracula +- emacs +- monokai (default) +- monokailight +- pygments +- solarized-dark +- solarized-light +- swapoff +- vim + +You can see available color themes with the command: + +``` +$ nyan --list-themes +``` + +![Available Themes](https://user-images.githubusercontent.com/803398/67260792-42a91000-f4d8-11e9-9b92-19c0072987e3.png) + ## What is nyan? `nyan` originates from [nyan-cat](http://www.nyan.cat/). diff --git a/main.go b/main.go index 89811a1e..db1a8a77 100644 --- a/main.go +++ b/main.go @@ -28,15 +28,15 @@ var rootCmd = &cobra.Command{ Short: "Colored cat command.", Long: "Colored cat command which supports syntax highlighting.", Example: `$ nyan FILE -$ nyan FILE1 FILE2 -$ nyan -t solarized-dark FILE1`, +$ nyan FILE1 FILE2 FILE3 +$ nyan -t solarized-dark FILE`, RunE: cmdMain, } func init() { - rootCmd.PersistentFlags().BoolVarP(&showVersion, "version", "v", false, `show version`) - rootCmd.PersistentFlags().StringVarP(&theme, "theme", "t", "monokai", fmt.Sprintf("color theme\navailable themes: %s", styles.Names())) - rootCmd.PersistentFlags().BoolVarP(&listThemes, "list-themes", "T", false, `list available themes`) + rootCmd.PersistentFlags().BoolVarP(&showVersion, "version", "v", false, `Show version`) + rootCmd.PersistentFlags().StringVarP(&theme, "theme", "t", "monokai", fmt.Sprintf("Set color theme for syntax highlighting\nAvailable themes: %s", styles.Names())) + rootCmd.PersistentFlags().BoolVarP(&listThemes, "list-themes", "T", false, `List available color themes`) } func main() {