def __init__(self, config): stream = StringIO() stream.write("Current platform settings:\n") configfile.pretty_print(config.get_all_platforms(), stream) self.description = stream.getvalue() stream.close() self.config = config
def __init__(self, config): stream = StringIO() stream.write("Current package settings:\n") configfile.pretty_print(config.package_description, stream) self.description = stream.getvalue() stream.close() self.config = config self.interactive_delete = False
def __init__(self, config): stream = StringIO() stream.write("Current configure and build settings:\n") configfile.pretty_print(config.get_all_platforms(), stream) self.description = stream.getvalue() stream.close() stream = StringIO() stream.write("Use commas to separate items in options and arguments fields") self.help = stream.getvalue() self.config = config
def __init__(self, config): stream = StringIO() stream.write("Current platform archive settings:\n") archives = {} for platform, description in config.get_all_platforms().iteritems(): if description.archive is not None: archives[platform] = description.archive configfile.pretty_print(archives, stream) self.description = stream.getvalue() stream.close() self.config = config
def __init__(self, config): stream = StringIO() stream.write("Current configure and build settings:\n") configfile.pretty_print(config.get_all_platforms(), stream) self.description = stream.getvalue() stream.close() stream = StringIO() stream.write( "Use commas to separate items in options and arguments fields") self.help = stream.getvalue() self.config = config
def __init__(self, config): """ This default __init__ for an interactive command has the following characteristics: config an instance of configfile.ConfigurationDescription() description prints out the current configuration for a user to examine prior to modification help text displayed providing info about field entry """ stream = StringIO() stream.write("Current settings:\n") configfile.pretty_print(config, stream) self.description = stream.getvalue() self.help = "Enter new or modified configuration values." self.config = config
def run(self, args): config = configfile.ConfigurationDescription(args.config_file) configfile.pretty_print(config)