Created
May 10, 2019 12:46
-
-
Save kyriediculous/f4b40772fc00aa50a7c97503f7d435a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func init() { | |
createCmd.Flags().StringP("author", "a", "", "Add an author") | |
createCmd.Flags().StringP("title", "t", "", "A title for the blog") | |
createCmd.Flags().StringP("content", "c", "", "The content for the blog") | |
createCmd.MarkFlagRequired("author") | |
createCmd.MarkFlagRequired("title") | |
createCmd.MarkFlagRequired("content") | |
rootCmd.AddCommand(createCmd) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment