Welcome to mirror list, hosted at ThFree Co, Russian Federation.

release.py - github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 693f064fcf8bba0ff9a8aac83d2a347531d8ddbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import subprocess
import shlex
import sys


def run(cmd: str):
    subprocess.run(shlex.split(cmd), check=True)


def main():
    level = sys.argv[1]
    run("cargo clippy --release")
    run(f"cargo release {level}")


if __name__ == "__main__":
    main()