summaryrefslogtreecommitdiffstats
path: root/cmd/x.go
diff options
context:
space:
mode:
authorsinner <[email protected]>2026-01-19 06:02:10 -0500
committersinner <[email protected]>2026-01-19 06:02:10 -0500
commit85caa38c7b45766f044a016b88a410f75cb7469e (patch)
treefd6be3a176b62097494ced076768d82179a4dbcf /cmd/x.go
parent542a09fd14761b4789ae89e16060b1b453e2e0f2 (diff)
downloaddborg-85caa38c7b45766f044a016b88a410f75cb7469e.tar.gz
dborg-85caa38c7b45766f044a016b88a410f75cb7469e.zip
feat: add command aliases for improved cli usabilityHEADmaster
Diffstat (limited to 'cmd/x.go')
-rw-r--r--cmd/x.go110
1 files changed, 60 insertions, 50 deletions
diff --git a/cmd/x.go b/cmd/x.go
index d8198ac..04ea964 100644
--- a/cmd/x.go
+++ b/cmd/x.go
@@ -15,27 +15,30 @@ var xCmd = &cobra.Command{
}
var xHistoryCmd = &cobra.Command{
- Use: "history [username]",
- Short: "Search Twitter/X username history",
- Long: `Search for Twitter/X username history and previous usernames`,
- Args: cobra.ExactArgs(1),
- RunE: runXHistorySearch,
+ Use: "history [username]",
+ Aliases: []string{"h"},
+ Short: "Search Twitter/X username history",
+ Long: `Search for Twitter/X username history and previous usernames`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXHistorySearch,
}
var xTweetsCmd = &cobra.Command{
- Use: "tweets [username]",
- Short: "Scrape tweets by username (Free OSINT)",
- Long: `Discovers tweet IDs from Internet Archive and fetches tweet content. Free and unauthenticated endpoint.`,
- Args: cobra.ExactArgs(1),
- RunE: runXTweetsSearch,
+ Use: "tweets [username]",
+ Aliases: []string{"tw"},
+ Short: "Scrape tweets by username (Free OSINT)",
+ Long: `Discovers tweet IDs from Internet Archive and fetches tweet content. Free and unauthenticated endpoint.`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXTweetsSearch,
}
var xFirstCmd = &cobra.Command{
- Use: "first [username]",
- Short: "Get first 20 followers of a Twitter/X account",
- Long: `Retrieves the first 20 followers of a Twitter/X account`,
- Args: cobra.ExactArgs(1),
- RunE: runXFirstFollowers,
+ Use: "first [username]",
+ Aliases: []string{"f"},
+ Short: "Get first 20 followers of a Twitter/X account",
+ Long: `Retrieves the first 20 followers of a Twitter/X account`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXFirstFollowers,
}
var xNFLCmd = &cobra.Command{
@@ -47,19 +50,21 @@ var xNFLCmd = &cobra.Command{
}
var xRepliesCmd = &cobra.Command{
- Use: "replies [tweet_id]",
- Short: "Fetch all replies for a tweet",
- Long: `Fetches all replies for a given tweet ID and streams results as NDJSON`,
- Args: cobra.ExactArgs(1),
- RunE: runXReplies,
+ Use: "replies [tweet_id]",
+ Aliases: []string{"r"},
+ Short: "Fetch all replies for a tweet",
+ Long: `Fetches all replies for a given tweet ID and streams results as NDJSON`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXReplies,
}
var xSearchCmd = &cobra.Command{
- Use: "search [query]",
- Short: "Search for tweets matching a term",
- Long: `Searches Twitter/X for tweets matching the given search term and streams results as NDJSON`,
- Args: cobra.ExactArgs(1),
- RunE: runXSearch,
+ Use: "search [query]",
+ Aliases: []string{"s"},
+ Short: "Search for tweets matching a term",
+ Long: `Searches Twitter/X for tweets matching the given search term and streams results as NDJSON`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXSearch,
}
func init() {
@@ -233,27 +238,30 @@ func runXSearch(cmd *cobra.Command, args []string) error {
}
var xDeletedTweetsCmd = &cobra.Command{
- Use: "deleted-tweets [handle]",
- Short: "Check deleted tweets for a Twitter/X account",
- Long: `Checks deleted token-related tweets from a Twitter account`,
- Args: cobra.ExactArgs(1),
- RunE: runXDeletedTweets,
+ Use: "deleted-tweets [handle]",
+ Aliases: []string{"dt"},
+ Short: "Check deleted tweets for a Twitter/X account",
+ Long: `Checks deleted token-related tweets from a Twitter account`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXDeletedTweets,
}
var xDomainCmd = &cobra.Command{
- Use: "domain [domain]",
- Short: "Check domain/website age",
- Long: `Checks the age of a domain/website`,
- Args: cobra.ExactArgs(1),
- RunE: runXDomain,
+ Use: "domain [domain]",
+ Aliases: []string{"dom"},
+ Short: "Check domain/website age",
+ Long: `Checks the age of a domain/website`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXDomain,
}
var xHoldersMapCmd = &cobra.Command{
- Use: "holders-map [address]",
- Short: "Analyze holder trading behavior for a token",
- Long: `Analyzes trading behavior of top 50 holders for a token`,
- Args: cobra.ExactArgs(1),
- RunE: runXHoldersMap,
+ Use: "holders-map [address]",
+ Aliases: []string{"hm"},
+ Short: "Analyze holder trading behavior for a token",
+ Long: `Analyzes trading behavior of top 50 holders for a token`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXHoldersMap,
}
var xIDCmd = &cobra.Command{
@@ -265,19 +273,21 @@ var xIDCmd = &cobra.Command{
}
var xImageCmd = &cobra.Command{
- Use: "image [address]",
- Short: "Reverse image search for a token",
- Long: `Performs reverse image search for a token (SOL/TRON)`,
- Args: cobra.ExactArgs(1),
- RunE: runXImage,
+ Use: "image [address]",
+ Aliases: []string{"img"},
+ Short: "Reverse image search for a token",
+ Long: `Performs reverse image search for a token (SOL/TRON)`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXImage,
}
var xUserIDCmd = &cobra.Command{
- Use: "user-id [handle]",
- Short: "Get Twitter user ID for a handle",
- Long: `Retrieves the Twitter user ID for a given handle`,
- Args: cobra.ExactArgs(1),
- RunE: runXUserID,
+ Use: "user-id [handle]",
+ Aliases: []string{"uid"},
+ Short: "Get Twitter user ID for a handle",
+ Long: `Retrieves the Twitter user ID for a given handle`,
+ Args: cobra.ExactArgs(1),
+ RunE: runXUserID,
}
func runXDeletedTweets(cmd *cobra.Command, args []string) error {