- Remove exported interfaces unused locally - Define interfaces to accept arguments - Return concrete types, not interfaces
13 lines
221 B
Go
13 lines
221 B
Go
// Package cli defines an interface CLI to run command line operations.
|
|
package cli
|
|
|
|
type CLI struct {
|
|
repoServersPath string
|
|
}
|
|
|
|
func New() *CLI {
|
|
return &CLI{
|
|
repoServersPath: "./internal/storage/servers.json",
|
|
}
|
|
}
|