mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-22 03:14:06 -05:00
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
21 lines
441 B
Go
21 lines
441 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/onyx-dot-app/onyx/cli/internal/config"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newExperimentsCmd() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "experiments",
|
|
Short: "List experimental features and their status",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
cfg := config.Load()
|
|
_, _ = fmt.Fprintln(cmd.OutOrStdout(), config.ExperimentsText(cfg.Features))
|
|
return nil
|
|
},
|
|
}
|
|
}
|