File: args.py

package info (click to toggle)
trash-cli 0.24.5.26-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,972 kB
  • sloc: python: 9,789; sh: 121; makefile: 11
file content (23 lines) | stat: -rw-r--r-- 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from enum import Enum
from typing import NamedTuple, Optional

from trashcli.lib.enum_repr import repr_for_enum


class Sort(Enum):
    ByDate = "ByDate"
    ByPath = "ByPath"
    DoNot = "DoNot"

    def __repr__(self):
        return repr_for_enum(self)


class RunRestoreArgs(
    NamedTuple('RunRestoreArgs', [
        ('path', str),
        ('sort', Sort),
        ('trash_dir', Optional[str]),
        ('overwrite', bool),
    ])):
    pass