
    Pi                    N    d Z ddlmZ ddlmZmZ dgZ eh d          Zdd
Z	dS )a  
Prometheus command handler for Dippy.

Prometheus is a monitoring server and time-series database. Only help and version
flags are safe (informational only). Running the server itself is unsafe as it
starts a service, binds ports, creates lockfiles, and writes data to storage.
    )annotations)ClassificationHandlerContext
prometheus>   -h--help	--version
--help-man--help-longctxr   returnr   c                    | j         }|r|d         nd}t          |          dk     rt          d| d          S |dd         D ]#}|t          v rt          d	| d
|           c S $t          d| d          S )zClassify prometheus command.

    Only help/version flags are safe. Any other invocation starts the server
    which binds ports, creates lockfiles, and writes data - all unsafe operations.
    r   r      askz server)description   Nallow )tokenslenr   
SAFE_FLAGS)r   r   basetokens       5/root/projects/gits/Dippy/src/dippy/cli/prometheus.pyclassifyr      s     ZF06!99LD
6{{QeD1A1A1ABBBB  J JJ!'$7H7H7H7HIIIIII  %-=-=-=>>>>    N)r   r   r   r   )
__doc__
__future__r   	dippy.clir   r   COMMANDS	frozensetr   r    r   r   <module>r#      s     # " " " " " 4 4 4 4 4 4 4 4> Y   
? ? ? ? ? ?r   