#include "virutil.h"
#include "virsh-host.h"
#include "conf/domain_conf.h"
+#include "virarch.h"
static char *
virshPagesizeNodeToString(xmlNodePtr node)
return virshEnumComplete(VIR_DOMAIN_VIRT_LAST,
virDomainVirtTypeToString);
}
+
+
+char **
+virshArchCompleter(vshControl *ctl G_GNUC_UNUSED,
+ const vshCmd *cmd G_GNUC_UNUSED,
+ unsigned int flags)
+{
+ virCheckFlags(0, NULL);
+
+ return virshEnumComplete(VIR_ARCH_LAST,
+ (const char *(*)(int))virArchToString);
+}
virshDomainVirtTypeCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
+
+char **
+virshArchCompleter(vshControl *ctl,
+ const vshCmd *cmd,
+ unsigned int flags);
},
{.name = "arch",
.type = VSH_OT_STRING,
+ .completer = virshArchCompleter,
.help = N_("domain architecture (/domain/os/type/@arch)"),
},
{.name = "machine",
static const vshCmdOptDef opts_cpu_models[] = {
{.name = "arch",
.type = VSH_OT_DATA,
+ .completer = virshArchCompleter,
.flags = VSH_OFLAG_REQ,
.help = N_("architecture")
},
},
{.name = "arch",
.type = VSH_OT_STRING,
+ .completer = virshArchCompleter,
.help = N_("CPU architecture (/domain/os/type/@arch)"),
},
{.name = "machine",
},
{.name = "arch",
.type = VSH_OT_STRING,
+ .completer = virshArchCompleter,
.help = N_("CPU architecture (/domain/os/type/@arch)"),
},
{.name = "machine",