// // aegis - project change supervisor // Copyright (C) 1991-1999, 2001-2008 Peter Miller // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see // . // // If you add another list to this file, // don't forget to update man1/ael.1 // #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include static void list_list_list(change_identifier &, string_list_ty *); // forward struct table_ty { const char *name; const char *description; void (*func)(change_identifier &, string_list_ty *); int number_allowed_args; }; static table_ty table[] = { { "Administrators", "List the administrators of a project", list_administrators, 0, }, { "Branch_Files", "List the files in a branch", list_branch_files, 0, }, { "Change_Details", "List all information about a change in large layout form.", list_change_details, 0, }, { "Change_Files", "List all files in a change", list_change_files, 0, }, { "Change_File_History", "List the history of all files in a change.", list_change_file_history, 0, }, { "Change_File_INventory", "List all files in a change with their UUID.", list_change_file_inventory, 0, }, { "Change_History", "List the history of a change", list_change_history, 0, }, { "Change_INventory", "List the changes of a project with their UUID.", list_change_inventory, 0, }, { "Changes", "List the changes of a project", list_changes, 0, }, { "Default_Change", "List the default change for the current user", list_default_change, 1, }, { "Default_Project", "List the default project for a (the current) user", list_default_project, 1, }, { "Developers", "List the developers of a project", list_developers, 0, }, { "INComplete", "List the incomplete changes (for a user)", list_incomplete_changes, 0, }, { "Integrators", "List the integrators of a project", list_integrators, 0, }, { "List_List", "List all lists available", list_list_list, 0, }, { "Locks", "List the active locks", list_locks, 0, }, { "Outstanding_Changes", "List the outstanding changes (for a user)", list_outstanding_changes, 1, }, { "All_Outstanding_Changes", "List the outstanding changes for all projects", list_outstanding_changes_all, 0, }, { "Branch_Details", "List the details of all changes in the branch (recursive)", list_project_details, 0, }, { "Project_Details", "List the details of all changes in the project (recursive)", list_project_details, 0, }, { "Project_Files", "List all files in the baseline of a project", list_project_files, 0, }, { "Project_File_INventory", "List all files in the baseline of a project with their UUID.", list_project_file_inventory, 0, }, { "Project_History", "List the integration history of a project", list_project_history, 0, }, { "Projects", "List all projects", list_projects, 0, }, { "Project_Aliases", "List all project aliases (the -Project option limits results)", list_project_aliases, 0, }, { "Reviewers", "List the reviewers of a project", list_reviewers, 0, }, { "State_File_Name", "List the full path name of the change's state file.", list_state_file_name, 0, }, { "Users_Changes", "List of changes owned by a (the current) user", list_user_changes, 1, }, { "Version", "List version of a project or change", list_version, 0, }, }; static void list_usage(void) { const char *progname; progname = progname_get(); fprintf(stderr, "usage: %s -List [