cmd: update to use new object system
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <blue/cmd.h>
|
||||
#include <blue/core/btree.h>
|
||||
#include <blue/core/queue.h>
|
||||
#include <blue/ds/string.h>
|
||||
|
||||
#define F_RED "[bright_red]"
|
||||
#define F_GREEN "[bright_green]"
|
||||
@@ -26,8 +27,6 @@ enum b_command_usage_entry_type {
|
||||
CMD_USAGE_COMMAND,
|
||||
};
|
||||
|
||||
struct b_string;
|
||||
|
||||
struct b_command {
|
||||
unsigned int b_id;
|
||||
unsigned int b_parent_id;
|
||||
@@ -136,19 +135,17 @@ BLUE_API b_status b_arglist_parse(
|
||||
const char **argv);
|
||||
BLUE_API void b_arglist_destroy(struct b_arglist *args);
|
||||
|
||||
BLUE_API struct b_string *z__b_command_default_usage_string(
|
||||
BLUE_API b_string *z__b_command_default_usage_string(
|
||||
struct b_command *cmd, struct b_command_option *with_opt,
|
||||
const struct b_arglist *args);
|
||||
|
||||
BLUE_API void z__b_get_arg_usage_string(
|
||||
struct b_command_arg *arg, bool colour, struct b_string *out);
|
||||
BLUE_API void z__b_get_arg_description(
|
||||
struct b_command_arg *arg, struct b_string *out);
|
||||
struct b_command_arg *arg, bool colour, b_string *out);
|
||||
BLUE_API void z__b_get_arg_description(struct b_command_arg *arg, b_string *out);
|
||||
|
||||
BLUE_API void z__b_get_option_usage_string(
|
||||
struct b_command_option *opt, enum cmd_string_flags flags,
|
||||
struct b_string *out);
|
||||
struct b_command_option *opt, enum cmd_string_flags flags, b_string *out);
|
||||
BLUE_API void z__b_get_option_description(
|
||||
struct b_command_option *opt, struct b_string *out);
|
||||
struct b_command_option *opt, b_string *out);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user