Skip to content

Instantly share code, notes, and snippets.

@kyriediculous
Created May 10, 2019 13:06
Show Gist options
  • Save kyriediculous/7635a8386c5b50ee14105f3a271057e8 to your computer and use it in GitHub Desktop.
Save kyriediculous/7635a8386c5b50ee14105f3a271057e8 to your computer and use it in GitHub Desktop.
func init() {
readCmd.Flags().StringP("id", "i", "", "The id of the blog")
readCmd.MarkFlagRequired("id")
rootCmd.AddCommand(readCmd)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment