Skip to content

Commit

Permalink
backup
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Feb 1, 2025
1 parent a158403 commit 58ba76d
Show file tree
Hide file tree
Showing 23 changed files with 265 additions and 604 deletions.
163 changes: 0 additions & 163 deletions cli/cli.go

This file was deleted.

55 changes: 0 additions & 55 deletions cli/e2e_test.go

This file was deleted.

41 changes: 41 additions & 0 deletions cmd/cli.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package cmd

import (
"fmt"
"os"

"github.com/spf13/cobra"
"github.com/spf13/viper"
)

var rootCmd = &cobra.Command{
Use: "QuickPiperAudiobook",
Short: "Hugo is a very fast static site generator",
Long: `A Fast and Flexible Static Site Generator built with
love by spf13 and friends in Go.
Complete documentation is available at http://hugo.spf13.com`,
Run: func(cmd *cobra.Command, args []string) {

},
}

func init() {

viper.SetConfigName("config.yaml")
viper.SetConfigType("yaml")
viper.AddConfigPath("/etc/QuickPiperAudiobook/")
viper.AddConfigPath("$HOME/.config/QuickPiperAudiobook")
err := viper.ReadInConfig()
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
// Config file not found; ignore error if desired
} else {
// Config file was found but another error was produced
}
}

func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}
34 changes: 26 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,44 @@ module QuickPiperAudiobook
go 1.22.5

require (
github.com/alecthomas/kong v0.9.0
github.com/stretchr/testify v1.8.1
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

require (
github.com/alecthomas/kong-yaml v0.2.0
github.com/briandowns/spinner v1.23.1 // indirect
github.com/fatih/color v1.17.0 // indirect
github.com/gen2brain/beeep v0.0.0-20240516210008-9c006672e7f4 // indirect
github.com/briandowns/spinner v1.23.1
github.com/fatih/color v1.17.0
github.com/gen2brain/beeep v0.0.0-20240516210008-9c006672e7f4
github.com/go-toast/toast v0.0.0-20190211030409-01e6764cf0a4 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
github.com/spf13/viper v1.19.0
github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/term v0.1.0 // indirect
Expand Down
Loading

0 comments on commit 58ba76d

Please sign in to comment.