From 85caa38c7b45766f044a016b88a410f75cb7469e Mon Sep 17 00:00:00 2001 From: sinner Date: Mon, 19 Jan 2026 06:02:10 -0500 Subject: feat: add command aliases for improved cli usability --- cmd/telegram.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'cmd/telegram.go') diff --git a/cmd/telegram.go b/cmd/telegram.go index 1c650b7..98092a6 100644 --- a/cmd/telegram.go +++ b/cmd/telegram.go @@ -6,17 +6,19 @@ import ( ) var telegramCmd = &cobra.Command{ - Use: "telegram", - Short: "Telegram lookup commands", - Long: `Lookup phone numbers associated with Telegram accounts`, + Use: "telegram", + Aliases: []string{"tg"}, + Short: "Telegram lookup commands", + Long: `Lookup phone numbers associated with Telegram accounts`, } var phoneCmd = &cobra.Command{ - Use: "phone [identifier]", - Short: "Get phone number for Telegram user", - Long: `Retrieves the phone number associated with a Telegram username (with @ prefix) or user ID`, - Args: cobra.ExactArgs(1), - RunE: runTelegramPhone, + Use: "phone [identifier]", + Aliases: []string{"p"}, + Short: "Get phone number for Telegram user", + Long: `Retrieves the phone number associated with a Telegram username (with @ prefix) or user ID`, + Args: cobra.ExactArgs(1), + RunE: runTelegramPhone, } func init() { -- cgit v1.2.3