示例#1
0
文件: prompt.py 项目: feluxe/buildlib
def should_commit(
    default: str = 'y',
    fmt=None,
) -> bool:

    return prompt.confirm(
        question='Run GIT COMMIT?',
        default=default,
        fmt=fmt,
    )
示例#2
0
文件: prompt.py 项目: feluxe/buildlib
def should_build(
    default: str = 'y',
    fmt=None,
) -> bool:

    return prompt.confirm(
        question=f'Do you want to BUILD WHEEL?\n',
        default=default,
        fmt=fmt,
    )
示例#3
0
文件: prompt.py 项目: feluxe/buildlib
def should_run_git(
    default: str = 'y',
    fmt=None,
) -> bool:

    return prompt.confirm(
        question='Run ANY GIT COMMANDS?',
        default=default,
        fmt=fmt,
    )
示例#4
0
文件: prompt.py 项目: feluxe/buildlib
def should_add_all(
    default: str = 'y',
    fmt=None,
) -> bool:

    return prompt.confirm(
        question='Run GIT ADD ALL ("git add --all")?',
        default=default,
        fmt=fmt,
    )
示例#5
0
文件: prompt.py 项目: feluxe/buildlib
def should_push(
    default: str = 'y',
    fmt=None,
) -> bool:

    return prompt.confirm(
        question='GIT PUSH to GITHUB?',
        default=default,
        fmt=fmt,
    )
示例#6
0
文件: prompt.py 项目: feluxe/buildlib
def should_tag(
    default: str = 'y',
    fmt=None,
) -> bool:

    return prompt.confirm(
        question='Run GIT TAG?',
        default=default,
        fmt=fmt,
    )
示例#7
0
文件: prompt.py 项目: feluxe/buildlib
def should_bump_version(
    default: str = 'y',
    fmt=None,
) -> bool:

    return prompt.confirm(
        question='BUMP VERSION number?\n',
        default=default,
        fmt=fmt,
    )
示例#8
0
def should_push(
    dst: str,
    default: str = 'y',
    fmt=None,
) -> bool:

    return prompt.confirm(
        question=f'Do you want to PUSH package to {dst}?\n',
        default=default,
        fmt=fmt,
    )
示例#9
0
def should_run_any(
    name: str,
    default: str = "",
    fmt=None,
) -> bool:

    return prompt.confirm(
        question=f"Run ANY {name}?\n",
        default=default,
        fmt=fmt,
    )
示例#10
0
def should_build(
    item: str,
    default: str = "",
    fmt=None,
) -> bool:

    return prompt.confirm(
        question=f"Do you want to BUILD {item}?\n",
        default=default,
        fmt=fmt,
    )
示例#11
0
def should_run_file(
    name: str,
    default: str = "",
    fmt=None,
) -> bool:

    return prompt.confirm(
        question=f"Do you want to RUN {name}?\n",
        default=default,
        fmt=fmt,
    )
示例#12
0
def should_push(
    item: str,
    dst: str,
    default: str = "",
    fmt=None,
) -> bool:

    return prompt.confirm(
        question=f"Do you want to PUSH {item} to {dst}?\n",
        default=default,
        fmt=fmt,
    )
示例#13
0
文件: prompt.py 项目: feluxe/buildlib
def confirm_diff(
    default: str = 'y',
    fmt=None,
) -> bool:

    git_cmd.diff()

    return prompt.confirm(
        question='GIT DIFF ok?',
        default=default,
        fmt=fmt,
    )
示例#14
0
文件: prompt.py 项目: feluxe/buildlib
def confirm_status(
    default: str = 'y',
    fmt=None,
) -> bool:

    git_cmd.status()

    return prompt.confirm(
        question='GIT STATUS ok?',
        default=default,
        fmt=fmt,
    )