feat: improve meals with better search and ids (#5)
Features: - Meals now have an id instead of a title only - It is now possible to get all meals without date or restaurant filter - Sorting meals output Reviewed-on: #5 Co-authored-by: bdoerfchen <git@bissendorf.co> Co-committed-by: bdoerfchen <git@bissendorf.co>
This commit is contained in:
@ -83,6 +83,7 @@ func getVerbs(ctx context.Context, config *AppConfig) (commands []*cobra.Command
|
||||
Use: r.Name,
|
||||
Aliases: r.Aliases,
|
||||
Short: r.Description,
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
// Configure log
|
||||
var logLevel = slog.LevelWarn
|
||||
@ -120,6 +121,7 @@ func getVerbs(ctx context.Context, config *AppConfig) (commands []*cobra.Command
|
||||
param.Description,
|
||||
)
|
||||
}
|
||||
|
||||
verbCommand.AddCommand(resourceCommand)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user