Пример #1
0
    def _echo_config(self, config_file_path):

        config_data = Configuration.readall(config_file_path,
                                            mark_defaults=DEFAULTS_CHAR)
        table = self._format_config_as_table(config_data, DEFAULTS_CHAR)
        click.echo(table)
        click.echo('')
        click.echo(
            "* Value marked with '{}' is actually the default value and has not been override by the user."
            .format(DEFAULTS_CHAR))
Пример #2
0
    def _echo_config(self, config_file_path):
        from shellfoundry.utilities.config_reader import Configuration

        defaults_char = '*'
        config_data = Configuration.readall(config_file_path, mark_defaults=defaults_char)
        table = self._format_config_as_table(config_data, defaults_char)
        click.echo(table)
        click.echo('')
        click.echo(
            "* Value marked with '{}' is actually the default value and has not been override by the user.".format(
                defaults_char))