aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBrian Dolbec <brian.dolbec@gmail.com>2011-01-16 22:57:58 -0800
committerBrian Dolbec <brian.dolbec@gmail.com>2011-02-12 19:48:26 -0800
commit7aa228d25d1fb1f1343f9cddb187a84bc1cd5a50 (patch)
treeaa62aca8d500ef4f5967c0e6a27353ddcdcb1086 /bin
parentoverhaul the api, add several functions, delay loading of the db's, etc (diff)
downloadlayman-7aa228d25d1fb1f1343f9cddb187a84bc1cd5a50.tar.gz
layman-7aa228d25d1fb1f1343f9cddb187a84bc1cd5a50.tar.bz2
layman-7aa228d25d1fb1f1343f9cddb187a84bc1cd5a50.zip
create a new cli interface to use the new api
Diffstat (limited to 'bin')
-rwxr-xr-xbin/layman7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/layman b/bin/layman
index fa1a3ab..965d89b 100755
--- a/bin/layman
+++ b/bin/layman
@@ -7,11 +7,13 @@
# Copyright:
# (c) 2005 Gunnar Wrobel
# (c) 2009 Sebastian Pipping
+# (c) 2011 Brian Dolbec
# Distributed under the terms of the GNU General Public License v2
#
# Author(s):
# Gunnar Wrobel <wrobel@gentoo.org>
# Sebastian Pipping <sebastian@pipping.org>
+# Brian Dolbec <brian.dolbec@gmail.com>
#
__version__ = "$Id$"
@@ -23,7 +25,7 @@ __version__ = "$Id$"
#-------------------------------------------------------------------------------
from layman.config import ArgsParser
-from layman.action import main
+from layman.cli import Main
#===============================================================================
#
@@ -31,4 +33,5 @@ from layman.action import main
#
#-------------------------------------------------------------------------------
-main(ArgsParser())
+main = Main(ArgsParser())
+main()