🚸 Add main menu
This commit is contained in:
parent
5b2896c032
commit
d8e671d5ca
4 changed files with 83 additions and 28 deletions
23
cmd/root.go
23
cmd/root.go
|
|
@ -8,7 +8,6 @@ import (
|
|||
"os"
|
||||
|
||||
"codeberg.org/danjones000/strip-beats/app"
|
||||
// "codeberg.org/danjones000/strip-beats/input/list"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
|
@ -20,28 +19,6 @@ var rootCmd = &cobra.Command{
|
|||
// has an action associated with it:
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
app.Run(0)
|
||||
/*
|
||||
opt := list.List([]list.Option{
|
||||
list.SimpleItem("Yes", "", 'y'),
|
||||
list.SimpleItem("No", "", 'n'),
|
||||
list.SimpleItem("Maybe", "perhaps", 'm'),
|
||||
}, nil)
|
||||
fmt.Printf("%+v\n", opt)
|
||||
// out := app.PickFileWithConf()
|
||||
out := app.SetFile("/home/drj/nothing.mkv")
|
||||
fmt.Println("first", out.Format.Path)
|
||||
// tmp, _ := os.CreateTemp("", "audio.*.mka")
|
||||
// defer os.Remove(tmp.Name())
|
||||
// fmt.Println("temp", tmp.Name())
|
||||
app.Finish()
|
||||
fmt.Printf("%+v\n", out)
|
||||
// media.Watch(out.Format.Path)
|
||||
show := boolean.Choose("Show stream?")
|
||||
if show {
|
||||
stream := out.WantedAudioStream()
|
||||
fmt.Printf("Stream %d of %s: %+v\n", stream.Index, out.Format.Path, stream)
|
||||
}
|
||||
*/
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue