§
    ôc  ã                   ó4   — d dl Z d dlmZ d„ Zdd„Zd„ Zd„ ZdS )	é    N)Úfeaturec                 óŒ   — |sdS d                      |                      dd¦  «        ¦  «        }|du r|fS |t          |¦  «        fS )zX
    Given a flag name and its value, return it formatted as Borg-compatible flags.
    © z--{}Ú_ú-T)ÚformatÚreplaceÚstr)ÚnameÚvalueÚflags      ú6/usr/lib/python3/dist-packages/borgmatic/borg/flags.pyÚ
make_flagsr      sQ   € ð ð Øˆrà�=Š=˜Ÿš c¨3Ñ/Ô/Ñ0Ô0€Dà�€}€}Øˆwˆà•#�e‘*”*ÐÐó    r   c           
      ó¬   ‡ ‡— t          t          j                             ˆ ˆfd„t	          t          ‰ ¦  «        ¦  «        D ¦   «         ¦  «        ¦  «        S )zÝ
    Given borgmatic command-line arguments as an instance of argparse.Namespace, and optionally a
    list of named arguments to exclude, generate and return the corresponding Borg command-line
    flags as a tuple.
    c              3   óˆ   •K  — | ]<}|‰v¯|                      d ¦  «        °t          |t          ‰|¦  «        ¬¦  «        V — Œ=dS )r   )r   N)Ú
startswithr   Úgetattr)Ú.0r   Ú	argumentsÚexcludess     €€r   ú	<genexpr>z,make_flags_from_arguments.<locals>.<genexpr>   sb   øè è € ð &
ð &
àØ˜8Ð#Ð#¨D¯OªO¸CÑ,@Ô,@Ð#õ �t¥7¨9°dÑ#;Ô#;Ð<Ñ<Ô<à#Ð#Ð#Ð#ð&
ð &
r   )ÚtupleÚ	itertoolsÚchainÚfrom_iterableÚsortedÚvars)r   r   s   ``r   Úmake_flags_from_argumentsr      sf   øø€ õ ÝŒ×%Ò%ð &
ð &
ð &
ð &
ð &
å�t I™œÑ/Ô/ð&
ñ &
ô &
ñ 	
ô 	
ñô ð r   c                 óZ   — t          j        t           j        j        |¦  «        rdnd| fz   S )z¬
    Given the path of a Borg repository and the local Borg version, return Borg-version-appropriate
    command-line flags (as a tuple) for selecting that repository.
    )ú--repor   ©r   Ú	availableÚFeatureÚSEPARATE_REPOSITORY_ARCHIVE)Ú
repositoryÚlocal_borg_versions     r   Úmake_repository_flagsr(   $   s5   € õ Ô�Wœ_ÔHÐJ\Ñ]Ô]ð	ˆˆàØ	ˆñ	ð r   c                 ód   — t          j        t           j        j        |¦  «        rd| |fn| › d|› �fS )zÙ
    Given the path of a Borg repository, an archive name or pattern, and the local Borg version,
    return Borg-version-appropriate command-line flags (as a tuple) for selecting that repository
    and archive.
    r!   z::r"   )r&   Úarchiver'   s      r   Úmake_repository_archive_flagsr+   0   sD   € õ Ô�Wœ_ÔHÐJ\Ñ]Ô]ð	+ˆ�:˜wÐ'Ð'àÐ(Ð(˜wÐ(Ð(Ð*ðr   )r   )r   Úborgmatic.borgr   r   r   r(   r+   r   r   r   ú<module>r-      sn   ðØ Ð Ð Ð à "Ð "Ð "Ð "Ð "Ð "ðð ð ðð ð ð ð	ð 	ð 	ð
ð 
ð 
ð 
ð 
r   