summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-01-20 15:07:43 -0500
committerRob Crittenden <rcritten@redhat.com>2011-01-21 13:56:02 -0500
commit4361cd02422d8a6b30d67bb6869af9c67f7ec9c0 (patch)
tree706f815f0ae0cbb68649397e0949599d6e035e96 /ipalib/cli.py
parent35f2f1d72078d69ca82b68f4d52bc61f2d297dfc (diff)
downloadfreeipa-4361cd02422d8a6b30d67bb6869af9c67f7ec9c0.tar.gz
freeipa-4361cd02422d8a6b30d67bb6869af9c67f7ec9c0.tar.xz
freeipa-4361cd02422d8a6b30d67bb6869af9c67f7ec9c0.zip
Rename INTERNAL to NO_CLI for commands we hide from the cli.
Also make i18n_messages and json_metadata NO_CLI. ticket 821
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index dfc577c39..2cd3a97c3 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -656,7 +656,7 @@ class help(frontend.Local):
# build help topics
for c in self.Command():
- if c.INTERNAL:
+ if c.NO_CLI:
continue
topic = self._get_module_topic(c.module)
@@ -715,7 +715,7 @@ class help(frontend.Local):
mcl = max(len(s) for s in (self.Command))
for cname in self.Command:
cmd = self.Command[cname]
- if cmd.INTERNAL:
+ if cmd.NO_CLI:
continue
print '%s %s' % (to_cli(cmd.name).ljust(mcl), cmd.summary)
else:
@@ -886,7 +886,7 @@ class cli(backend.Executioner):
return
(key, argv) = (argv[0], argv[1:])
name = from_cli(key)
- if name not in self.Command or self.Command[name].INTERNAL:
+ if name not in self.Command or self.Command[name].NO_CLI:
raise CommandError(name=key)
cmd = self.Command[name]
if not isinstance(cmd, frontend.Local):