From 789db85915baf79c2ade61aecede8c365103f363 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 9 May 2015 23:07:48 +0200
Subject: degesch: add command placeholders
---
degesch.c | 131 ++++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 76 insertions(+), 55 deletions(-)
diff --git a/degesch.c b/degesch.c
index 294afab..01cc65f 100644
--- a/degesch.c
+++ b/degesch.c
@@ -4821,68 +4821,85 @@ handle_command_quote (struct app_context *ctx, char *arguments)
static bool handle_command_help (struct app_context *, char *);
+#define NOT_IMPLEMENTED(name) { #name, "(Not implemented)", NULL, NULL },
+
static struct command_handler
{
const char *name;
- bool (*handler) (struct app_context *ctx, char *arguments);
const char *description;
const char *usage;
+ bool (*handler) (struct app_context *ctx, char *arguments);
}
g_command_handlers[] =
{
- { "help", handle_command_help, "Show help",
- "[ |