Added base as CLI default mode and cli
This commit is contained in:
parent
4b17af0278
commit
efe44d60e8
4 changed files with 7 additions and 4 deletions
|
|
@ -282,8 +282,11 @@ cli_load_syntax(clicon_handle h,
|
|||
|
||||
/* Make sure we have a syntax mode specified */
|
||||
if (mode == NULL || strlen(mode) < 1) { /* may be null if not given in file */
|
||||
clicon_err(OE_PLUGIN, 0, "No syntax mode specified in %s", filepath);
|
||||
goto done;
|
||||
mode = clicon_cli_mode(h);
|
||||
if (mode == NULL || strlen(mode) < 1) { /* may be null if not given in file */
|
||||
clicon_err(OE_PLUGIN, 0, "No syntax mode specified in %s", filepath);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
if ((vec = clicon_strsep(mode, ":", &nvec)) == NULL)
|
||||
goto done;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
*/
|
||||
/* Max prompt length */
|
||||
#define CLI_PROMPT_LEN 64
|
||||
#define CLI_DEFAULT_PROMPT ">"
|
||||
#define CLI_DEFAULT_PROMPT "cli> "
|
||||
|
||||
/*
|
||||
* Function Declarations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue