Files
mje/commands/midjourney.go
Jim Myhrberg b0e52fc498 wip: initial commit
Extremely unfinished and work in progress.
2022-09-07 08:37:01 +01:00

24 lines
424 B
Go

package commands
import (
"github.com/jimeh/mj2n/midjourney"
"github.com/spf13/cobra"
)
func NewMidjourney(mc *midjourney.Client) (*cobra.Command, error) {
cmd := &cobra.Command{
Use: "midjourney",
Aliases: []string{"mj"},
Short: "MidJourney specific commands",
}
recentJobsCmd, err := NewMidjourneyRecentJobs(mc)
if err != nil {
return nil, err
}
cmd.AddCommand(recentJobsCmd)
return cmd, nil
}