xref: /titanic_41/usr/src/cmd/svc/svccfg/svccfg_help.c (revision fd9cb95cbb2f626355a60efb9d02c5f0a33c10e6)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28 
29 #include "svccfg.h"
30 #include "svccfg_grammar.h"
31 
32 struct help_message help_messages[] = {
33 	{ SCC_VALIDATE, "validate file\n\n"
34 		"Process a manifest file without changing the repository."
35 	},
36 	{ SCC_IMPORT, "import file\n\nImport a manifest into the repository." },
37 	{ SCC_EXPORT, "export {service | pattern} [> file]\n\n"
38 "Print a manifest for service to file, or standard output if not specified."
39 	},
40 	{ SCC_ARCHIVE, "archive [> file]\n\n"
41 "Print an archive to file, or standard output if not specified."
42 	},
43 	{ SCC_APPLY, "apply file\n\nApply a profile." },
44 	{ SCC_EXTRACT, "extract [> file]\n\n"
45 "Print a profile to file, or standard output if not specified." },
46 	{ SCC_REPOSITORY, "repository file\n\nSet the repository to modify." },
47 	{ SCC_INVENTORY, "inventory file\n\n"
48 		"Print the services and instances contained in a manifest."
49 	},
50 	{ SCC_SET, "set [-vV]\n\n"
51 "Without arguments, display current options.  Otherwise set the given options."
52 	},
53 	{ SCC_END, "end\n\nStop processing and exit." },
54 	{ SCC_HELP, "help [command]\n\nDisplay help." },
55 	{ SCC_LIST, "list [glob_pattern]\n\n"
56 		"List children of the currently selected entity."
57 	},
58 	{ SCC_ADD, "add name\n\n"
59 		"Add a new child entity to the currently selected entity."
60 	},
61 	{ SCC_DELETE, "delete [-f] {name | fmri | pattern}\n\n"
62 "Delete the named child entity or the one indicated by fmri.  With -f, delete\n"
63 "running services.\n"
64 	},
65 	{ SCC_SELECT, "select {name | fmri | pattern}\n\n"
66 		"Select the named child entity or the one indicated by fmri."
67 	},
68 	{ SCC_UNSELECT, "unselect\n\n"
69 		"Select the parent of the currently selected entity."
70 	},
71 	{ SCC_LISTPG, "listpg [glob_pattern]\n\n"
72 		"List property groups of the currently selected entity."
73 	},
74 	{ SCC_ADDPG, "addpg name type [P]\n\n"
75 		"Add a new property group to the currently selected entity."
76 	},
77 	{ SCC_DELPG, "delpg name\n\n"
78 "Delete the named property group from the currently selected entity."
79 	},
80 	{ SCC_LISTPROP, "listprop [glob_pattern]\n\n"
81 "List property groups and properties of the currently selected entity."
82 	},
83 	{ SCC_SETPROP,
84 		"\tsetprop pg/name = [type:] value\n"
85 		"\tsetprop pg/name = [type:] ([value...])\n\n"
86 "Set the pg/name property of the currently selected entity.  Values may be\n"
87 "enclosed in double-quotes.  Value lists may span multiple lines."
88 	},
89 	{ SCC_DELPROP, "delprop pg/name\n\n"
90 		"Delete the pg/name property of the currently selected entity."
91 	},
92 	{ SCC_EDITPROP, "editprop\n\n"
93 "Invoke $EDITOR to edit the properties of the currently selected entity."
94 	},
95 	{ SCC_ADDPROPVALUE, "addpropvalue pg/name [type:] value\n\n"
96 "Add the given value to the named property."
97 	},
98 	{ SCC_DELPROPVALUE, "delpropvalue pg/name glob_pattern\n\n"
99 "Delete all values matching the glob pattern fron the given property."
100 	},
101 	{ SCC_SETENV, "setenv [-s | -i | -m method] NAME value\n\n"
102 "Set an environment variable for the given service, instance, or method "
103 "context."
104 	},
105 	{ SCC_UNSETENV, "unsetenv [-s | -i | -m method] NAME value\n\n"
106 "Unset an environment variable for the given service, instance, or method "
107 "context."
108 	},
109 	{ SCC_LISTSNAP, "listsnap\n\n"
110 		"List snapshots of the currently selected instance."
111 	},
112 	{ SCC_SELECTSNAP, "selectsnap [snapshot]\n\n"
113 "Select a snapshot of the currently selected instance, or the Editing\n"
114 "snapshot by default."
115 	},
116 	{ SCC_REVERT, "revert [snapshot]\n\n"
117 "Change the properties of the currently selected instance and its ancestors\n"
118 "to those in a snapshot, or the currently selected snapshot by default."
119 	},
120 	{ 0, NULL }
121 };
122