🎨 Improved information

Improved information fetching.
This commit is contained in:
perp 2023-08-02 05:05:20 +01:00
parent b18749b867
commit b04c374124

View File

@ -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
}