fix: publish

This commit is contained in:
Rogee
2024-09-04 13:29:15 +08:00
parent 3f6656d97e
commit d7c9d40e37
5 changed files with 29 additions and 7 deletions

View File

@@ -21,7 +21,9 @@ func PublishCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "publish",
Short: "publish posts",
RunE: wrapE(publishCmd),
RunE: func(cmd *cobra.Command, args []string) error {
return publishCmd(context.Background())
},
}
return cmd