import os import sys from pprint import pprint import lib import confparse import taxus import util from libname import Namespace, Name from libcmdng import Targets, Arguments, Keywords, Options,\ Target, TargetResolver NS = Namespace.register( prefix='vol', uriref='http://project.dotmpe.com/script/#/cmdline.Volume' ) Options.register(NS, ) @Target.register(NS, 'find-volume', 'txs:pwd') def find_volume(opts=None, pwd=None): vdb = None print list(confparse.find_config_path("git", pwd.location.path)) for path in confparse.find_config_path("cllct", pwd.location.path): vdb = os.path.join(path, 'volume.db') if os.path.exists(vdb): break
""" """ import os, sys, re, anydbm import txs import log from libname import Namespace, Name from libcmd import Targets, Arguments, Keywords, Options,\ Target NS = Namespace.register( prefix='lnd', uriref='http://project.dotmpe.com/script/#/cmdline.Lind' ) Options.register(NS, ) @Target.register(NS, 'tag', 'txs:pwd') def lnd_tag(opts=None, sa=None, ur=None, pwd=None): """ Experiment, interactive interface. Tagging. """ log.debug("{bblack}lnd{bwhite}:tag{default}") if not pwd: log.err("Not initialized") yield 1