knack/experimental.py [36:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def __init__(self, cli_ctx, object_type='', target=None, tag_func=None, message_func=None, **kwargs):
        """ Create a collection of experimental metadata.

        :param cli_ctx: The CLI context associated with the experimental item.
        :type cli_ctx: knack.cli.CLI
        :param object_type: A label describing the type of object in experimental.
        :type: object_type: str
        :param target: The name of the object in experimental.
        :type target: str
        :param tag_func: Callable which returns the desired unformatted tag string for the experimental item.
                         Omit to use the default.
        :type tag_func: callable
        :param message_func: Callable which returns the desired unformatted message string for the experimental item.
                             Omit to use the default.
        :type message_func: callable
        """

        def _default_get_message(self):
            return status_tag_messages[_config_key].format("This " + self.object_type)

        super().__init__(
            cli_ctx=cli_ctx,
            object_type=object_type,
            target=target,
            color=color_map[_config_key],
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



knack/preview.py [36:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def __init__(self, cli_ctx, object_type='', target=None, tag_func=None, message_func=None, **kwargs):
        """ Create a collection of preview metadata.

        :param cli_ctx: The CLI context associated with the preview item.
        :type cli_ctx: knack.cli.CLI
        :param object_type: A label describing the type of object in preview.
        :type: object_type: str
        :param target: The name of the object in preview.
        :type target: str
        :param tag_func: Callable which returns the desired unformatted tag string for the preview item.
                         Omit to use the default.
        :type tag_func: callable
        :param message_func: Callable which returns the desired unformatted message string for the preview item.
                             Omit to use the default.
        :type message_func: callable
        """

        def _default_get_message(self):
            return status_tag_messages[_config_key].format("This " + self.object_type)

        super().__init__(
            cli_ctx=cli_ctx,
            object_type=object_type,
            target=target,
            color=color_map[_config_key],
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



