int subcommand_attr_register (optparse_t *p) { optparse_err_t e; e = optparse_reg_subcommand (p, "setattr", cmd_setattr, "name value", "Get broker attribute", setattr_opts); if (e != OPTPARSE_SUCCESS) return (-1); e = optparse_reg_subcommand (p, "getattr", cmd_getattr, "name", "Get broker attribute", NULL); if (e != OPTPARSE_SUCCESS) return (-1); e = optparse_reg_subcommand (p, "lsattr", cmd_lsattr, "[-v]", "List broker attributes", lsattr_opts); if (e != OPTPARSE_SUCCESS) return (-1); return (0); }
int subcommand_nodeset_register (optparse_t *p) { optparse_err_t e; e = optparse_reg_subcommand (p, "nodeset", cmd_nodeset, "[OPTION] [NODESET]...", "Manipulate nodesets", 0, nodeset_opts); return (e == OPTPARSE_SUCCESS ? 0 : -1); }
int subcommand_env_register (optparse_t *p) { optparse_err_t e; e = optparse_reg_subcommand (p, "env", cmd_env, "[OPTIONS...] [COMMAND...]", "Print the flux environment or execute COMMAND inside it", 0, NULL); return (e == OPTPARSE_SUCCESS ? 0 : -1); }
int subcommand_heaptrace_register (optparse_t *p) { optparse_err_t e; e = optparse_reg_subcommand (p, "heaptrace", cmd_heaptrace, NULL, "Control google-perftools heap profiling of flux-broker", NULL); if (e != OPTPARSE_SUCCESS) return (-1); e = optparse_reg_subcommands (optparse_get_subcommand (p, "heaptrace"), heaptrace_subcmds); return (e == OPTPARSE_SUCCESS ? 0 : -1); }
int subcommand_content_register (optparse_t *p) { optparse_err_t e; e = optparse_reg_subcommand (p, "content", cmd_content, NULL, "Access content store", NULL); if (e != OPTPARSE_SUCCESS) return (-1); e = optparse_reg_subcommands (optparse_get_subcommand (p, "content"), content_subcmds); return (e == OPTPARSE_SUCCESS ? 0 : -1); }
int subcommand_hwloc_register (optparse_t *p) { optparse_t *c; optparse_err_t e; e = optparse_reg_subcommand (p, "hwloc", cmd_hwloc, NULL, "Control/query resource-hwloc service", NULL); if (e != OPTPARSE_SUCCESS) return (-1); c = optparse_get_subcommand (p, "hwloc"); if ((e = optparse_reg_subcommands (c, hwloc_subcmds)) != OPTPARSE_SUCCESS) return (-1); e = optparse_set (optparse_get_subcommand (c, "lstopo"), OPTPARSE_SUBCMD_NOOPTS, 1); return (e == OPTPARSE_SUCCESS ? 0 : -1); }