🚧 App package to hold app state
This commit is contained in:
		
					parent
					
						
							
								433f49e9e0
							
						
					
				
			
			
				commit
				
					
						d91fc4b9ec
					
				
			
		
					 2 changed files with 29 additions and 3 deletions
				
			
		|  | @ -7,7 +7,7 @@ import ( | |||
| 	"fmt" | ||||
| 	"os" | ||||
| 
 | ||||
| 	"codeberg.org/danjones000/strip-beats/files" | ||||
| 	"codeberg.org/danjones000/strip-beats/app" | ||||
| 	"codeberg.org/danjones000/strip-beats/input/boolean" | ||||
| 	"codeberg.org/danjones000/strip-beats/media" | ||||
| 	"github.com/spf13/cobra" | ||||
|  | @ -20,8 +20,7 @@ var rootCmd = &cobra.Command{ | |||
| 	// Uncomment the following line if your bare application | ||||
| 	// has an action associated with it: | ||||
| 	Run: func(cmd *cobra.Command, args []string) { | ||||
| 		file := files.PickRandomFile() | ||||
| 		out := media.ProbeFile(file) | ||||
| 		out := app.GetFile() | ||||
| 		fmt.Printf("%+v\n", out) | ||||
| 		// media.Watch(out.Format.Path) | ||||
| 		show := boolean.Choose("Show stream?") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue