# Path: cliff/columns.py
# class FormattableColumn(object, metaclass=abc.ABCMeta):
#     def __init__(self, value):
#     def __eq__(self, other):
#     def __lt__(self, other):
#     def human_readable(self):
#     def machine_readable(self):


from . import base
from cliff import columns
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#  License for the specific language governing permissions and limitations
#  under the License.

"""Output formatters values only
"""



class ValueFormatter(base.ListFormatter, base.SingleFormatter):

    def add_argument_group(self, parser):
        pass

    def emit_list(self, column_names, data, stdout, parsed_args):
        for row in data:
            stdout.write(
                ' '.join(
                    str(c.machine_readable()
                        if isinstance(c, columns.FormattableColumn)
                        else c)
                    for c in row) + '\n')
        return

    def emit_one(self, column_names, data, stdout, parsed_args):
        for value in data:
            stdout.write('%s\n' % str(
                value.machine_readable()

# Path: cliff/columns.py
# class FormattableColumn(object, metaclass=abc.ABCMeta):
#     def __init__(self, value):
#     def __eq__(self, other):
#     def __lt__(self, other):
#     def human_readable(self):
#     def machine_readable(self):


# Path: cliff/formatters/value.py
from . import base
from cliff import columns

#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#  License for the specific language governing permissions and limitations
#  under the License.

"""Output formatters values only
"""



class ValueFormatter(base.ListFormatter, base.SingleFormatter):

    def add_argument_group(self, parser):
        pass

    def emit_list(self, column_names, data, stdout, parsed_args):
        for row in data:
            stdout.write(
                ' '.join(
                    str(c.machine_readable()
                        if isinstance(c, columns.FormattableColumn)
                        else c)
                    for c in row) + '\n')
        return

    def emit_one(self, column_names, data, stdout, parsed_args):
        for value in data:
            stdout.write('%s\n' % str(
                value.machine_readable()

                if isinstance(value, columns.FormattableColumn)