mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virsh: Move cmdSelfTest to vsh
This command should be exposed to other shells of ours. They are gonna need it as soon as we want to test them too. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
11
tools/vsh.h
11
tools/vsh.h
@@ -376,12 +376,14 @@ extern const vshCmdOptDef opts_echo[];
|
||||
extern const vshCmdInfo info_echo[];
|
||||
extern const vshCmdInfo info_pwd[];
|
||||
extern const vshCmdInfo info_quit[];
|
||||
extern const vshCmdInfo info_selftest[];
|
||||
|
||||
bool cmdHelp(vshControl *ctl, const vshCmd *cmd);
|
||||
bool cmdCd(vshControl *ctl, const vshCmd *cmd);
|
||||
bool cmdEcho(vshControl *ctl, const vshCmd *cmd);
|
||||
bool cmdPwd(vshControl *ctl, const vshCmd *cmd);
|
||||
bool cmdQuit(vshControl *ctl, const vshCmd *cmd);
|
||||
bool cmdSelfTest(vshControl *ctl, const vshCmd *cmd);
|
||||
|
||||
# define VSH_CMD_CD \
|
||||
{ \
|
||||
@@ -437,6 +439,15 @@ bool cmdQuit(vshControl *ctl, const vshCmd *cmd);
|
||||
.flags = VSH_CMD_FLAG_NOCONNECT \
|
||||
}
|
||||
|
||||
# define VSH_CMD_SELF_TEST \
|
||||
{ \
|
||||
.name = "self-test", \
|
||||
.handler = cmdSelfTest, \
|
||||
.opts = NULL, \
|
||||
.info = info_selftest, \
|
||||
.flags = VSH_CMD_FLAG_NOCONNECT | VSH_CMD_FLAG_ALIAS \
|
||||
}
|
||||
|
||||
|
||||
/* readline */
|
||||
char * vshReadline(vshControl *ctl, const char *prompt);
|
||||
|
||||
Reference in New Issue
Block a user