cubicweb/devtools/devctl.py
branch3.26
changeset 12687 59c3e639f62c
parent 12080 b8c4a8bab7b3
child 12709 280c9db41038
equal deleted inserted replaced
12679:c799179d7ca6 12687:59c3e639f62c
   620          {'short': 'v', 'type' : 'yn', 'metavar': '<verbose>',
   620          {'short': 'v', 'type' : 'yn', 'metavar': '<verbose>',
   621           'default': 'n',
   621           'default': 'n',
   622           'help': 'verbose mode: will ask all possible configuration questions',
   622           'help': 'verbose mode: will ask all possible configuration questions',
   623           }
   623           }
   624          ),
   624          ),
       
   625         ("short-description",
       
   626          {'short': 's', 'type': 'string', 'metavar': '<short description>',
       
   627           'help': 'short description for the cube',
       
   628          }
       
   629          ),
   625         ("author",
   630         ("author",
   626          {'short': 'a', 'type' : 'string', 'metavar': '<author>',
   631          {'short': 'a', 'type' : 'string', 'metavar': '<author>',
   627           'default': 'LOGILAB S.A. (Paris, FRANCE)',
   632           'default': 'LOGILAB S.A. (Paris, FRANCE)',
   628           'help': 'cube author',
   633           'help': 'cube author',
   629           }
   634           }
   715                 'cube distname should be a valid debian package name')
   720                 'cube distname should be a valid debian package name')
   716         cubedir = osp.join(destdir, distname)
   721         cubedir = osp.join(destdir, distname)
   717         if osp.exists(cubedir):
   722         if osp.exists(cubedir):
   718             self.fail("%s already exists!" % cubedir)
   723             self.fail("%s already exists!" % cubedir)
   719         skeldir = osp.join(BASEDIR, 'skeleton')
   724         skeldir = osp.join(BASEDIR, 'skeleton')
   720         longdesc = shortdesc = input(
   725         longdesc = shortdesc = self['short-description'] or input(
   721             'Enter a short description for your cube: ')
   726             'Enter a short description for your cube: ')
   722         if verbose:
   727         if verbose:
   723             longdesc = input(
   728             longdesc = input(
   724                 'Enter a long description (leave empty to reuse the short one): ')
   729                 'Enter a long description (leave empty to reuse the short one): ')
   725         dependencies = {
   730         dependencies = {