mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
chore: made changes to build and fix issues
This commit is contained in:
parent
adec553c1b
commit
95f0cd41e6
6 changed files with 91 additions and 44 deletions
36
cmd/root.go
36
cmd/root.go
|
|
@ -37,23 +37,24 @@ const (
|
|||
|
||||
// CLI arguments as variables to not fiddle with error-prone strings
|
||||
var (
|
||||
currentUser *user.User
|
||||
accessToken string
|
||||
timeout int
|
||||
concurrency int
|
||||
ports []int
|
||||
protocol string
|
||||
cacertPath string
|
||||
username string
|
||||
password string
|
||||
cachePath string
|
||||
outputPath string
|
||||
outputDir string
|
||||
configPath string
|
||||
verbose bool
|
||||
debug bool
|
||||
forceUpdate bool
|
||||
insecure bool
|
||||
currentUser *user.User
|
||||
accessToken string
|
||||
accessTokenPath string
|
||||
timeout int
|
||||
concurrency int
|
||||
ports []int
|
||||
protocol string
|
||||
cacertPath string
|
||||
username string
|
||||
password string
|
||||
cachePath string
|
||||
outputPath string
|
||||
outputDir string
|
||||
configPath string
|
||||
verbose bool
|
||||
debug bool
|
||||
forceUpdate bool
|
||||
insecure bool
|
||||
)
|
||||
|
||||
// The `root` command doesn't do anything on it's own except display
|
||||
|
|
@ -137,7 +138,6 @@ func SetDefaults() {
|
|||
viper.SetDefault("scan.subnet-masks", []net.IP{})
|
||||
viper.SetDefault("scan.disable-probing", false)
|
||||
viper.SetDefault("scan.disable-cache", false)
|
||||
viper.SetDefault("collect.host", host)
|
||||
viper.SetDefault("collect.username", "")
|
||||
viper.SetDefault("collect.password", "")
|
||||
viper.SetDefault("collect.protocol", "tcp")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue