1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Added long help with dummy data

This commit is contained in:
James Booth 2012-08-14 22:50:38 +01:00
parent 9fd7b2b3c2
commit 7972a9a8b4
2 changed files with 42 additions and 19 deletions

View File

@ -80,84 +80,106 @@ static struct cmd_t main_commands[] =
{ {
{ "/help", { "/help",
_cmd_help, _cmd_help,
{ "/help", "This help." } }, { "/help", "This help.",
{ "/help [command]",
"",
"/help will list all commands with short help on what they do."
"/help [command] will give more detailed help on a specific command." } } },
{ "/connect", { "/connect",
_cmd_connect, _cmd_connect,
{ "/connect user@host", "Login to jabber." } }, { "/connect user@host", "Login to jabber.",
{ "Ahh" } } },
{ "/prefs", { "/prefs",
_cmd_prefs, _cmd_prefs,
{ "/prefs", "Show current preferences." } }, { "/prefs", "Show current preferences.",
{ "Ahh" } } },
{ "/msg", { "/msg",
_cmd_msg, _cmd_msg,
{ "/msg user@host mesg", "Send mesg to user." } }, { "/msg user@host mesg", "Send mesg to user.",
{ "Ahh" } } },
{ "/tiny", { "/tiny",
_cmd_tiny, _cmd_tiny,
{ "/tiny url", "Send url as tinyurl in current chat." } }, { "/tiny url", "Send url as tinyurl in current chat.",
{ "Ahh" } } },
{ "/ros", { "/ros",
_cmd_ros, _cmd_ros,
{ "/ros", "List all contacts." } }, { "/ros", "List all contacts.",
{ "Ahh" } } },
{ "/who", { "/who",
_cmd_who, _cmd_who,
{ "/who", "Find out who is online." } }, { "/who", "Find out who is online.",
{ "Ahh" } } },
{ "/close", { "/close",
_cmd_close, _cmd_close,
{ "/close", "Close current chat window." } }, { "/close", "Close current chat window.",
{ "Ahh" } } },
{ "/quit", { "/quit",
_cmd_quit, _cmd_quit,
{ "/quit", "Quit Profanity." } } { "/quit", "Quit Profanity.",
{ "Ahh" } } }
}; };
static struct cmd_t setting_commands[] = static struct cmd_t setting_commands[] =
{ {
{ "/beep", { "/beep",
_cmd_set_beep, _cmd_set_beep,
{ "/beep on|off", "Enable/disable sound notifications." } }, { "/beep on|off", "Enable/disable sound notifications.",
{ "Ahh" } } },
{ "/notify", { "/notify",
_cmd_set_notify, _cmd_set_notify,
{ "/notify on|off", "Enable/disable desktop notifications." } }, { "/notify on|off", "Enable/disable desktop notifications.",
{ "Ahh" } } },
{ "/flash", { "/flash",
_cmd_set_flash, _cmd_set_flash,
{ "/flash on|off", "Enable/disable screen flash notifications." } }, { "/flash on|off", "Enable/disable screen flash notifications.",
{ "Ahh" } } },
{ "/showsplash", { "/showsplash",
_cmd_set_showsplash, _cmd_set_showsplash,
{ "/showsplash on|off", "Enable/disable splash logo on startup." } }, { "/showsplash on|off", "Enable/disable splash logo on startup.",
{ "Ahh" } } },
{ "/chlog", { "/chlog",
_cmd_set_chlog, _cmd_set_chlog,
{ "/chlog on|off", "Enable/disable chat logging." } } { "/chlog on|off", "Enable/disable chat logging.",
{ "Ahh" } } }
}; };
static struct cmd_t status_commands[] = static struct cmd_t status_commands[] =
{ {
{ "/away", { "/away",
_cmd_away, _cmd_away,
{ "/away [msg]", "Set status to away." } }, { "/away [msg]", "Set status to away.",
{ "Ahh" } } },
{ "/chat", { "/chat",
_cmd_chat, _cmd_chat,
{ "/chat [msg]", "Set status to chat (available for chat)." } }, { "/chat [msg]", "Set status to chat (available for chat).",
{ "Ahh" } } },
{ "/dnd", { "/dnd",
_cmd_dnd, _cmd_dnd,
{ "/dnd [msg]", "Set status to dnd (do not disturb." } }, { "/dnd [msg]", "Set status to dnd (do not disturb.",
{ "Ahh" } } },
{ "/online", { "/online",
_cmd_online, _cmd_online,
{ "/online [msg]", "Set status to online." } }, { "/online [msg]", "Set status to online.",
{ "Ahh" } } },
{ "/xa", { "/xa",
_cmd_xa, _cmd_xa,
{ "/xa [msg]", "Set status to xa (extended away)." } } { "/xa [msg]", "Set status to xa (extended away).",
{ "Ahh" } } }
}; };
static PAutocomplete commands_ac; static PAutocomplete commands_ac;

View File

@ -27,6 +27,7 @@
struct cmd_help_t { struct cmd_help_t {
const gchar *usage; const gchar *usage;
const gchar *short_help; const gchar *short_help;
const gchar *long_help[50];
}; };
void command_init(void); void command_init(void);