🎨 Improved information
Improved information fetching.
This commit is contained in:
parent
b18749b867
commit
b04c374124
@ -9,7 +9,6 @@ import (
|
|||||||
|
|
||||||
// Access flags
|
// Access flags
|
||||||
var (
|
var (
|
||||||
api bool
|
|
||||||
profile bool
|
profile bool
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -20,13 +19,12 @@ var infoCmd = &cobra.Command{
|
|||||||
Aliases: []string{"information"},
|
Aliases: []string{"information"},
|
||||||
Run: func(_ *cobra.Command, _ []string) {
|
Run: func(_ *cobra.Command, _ []string) {
|
||||||
utils.CheckColor()
|
utils.CheckColor()
|
||||||
shodan.Info(api, profile)
|
shodan.Info(profile)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
// Add flags
|
// Add flags
|
||||||
infoCmd.PersistentFlags().BoolVarP(&api, "api", "a", false, "Show API information")
|
|
||||||
infoCmd.PersistentFlags().BoolVarP(&profile, "profile", "p", false, "Show profile information")
|
infoCmd.PersistentFlags().BoolVarP(&profile, "profile", "p", false, "Show profile information")
|
||||||
infoCmd.Flags().SortFlags = false
|
infoCmd.Flags().SortFlags = false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user