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