forked from uncloud/uncloud
uncloud cli converted to argparse
This commit is contained in:
parent
50fb135726
commit
3296e524cc
13 changed files with 284 additions and 287 deletions
|
|
@ -3,6 +3,7 @@ import os
|
|||
import pathlib
|
||||
import subprocess as sp
|
||||
import time
|
||||
import argparse
|
||||
|
||||
from uuid import uuid4
|
||||
|
||||
|
|
@ -11,6 +12,9 @@ from uncloud.settings import settings
|
|||
from uncloud.shared import shared
|
||||
|
||||
|
||||
arg_parser = argparse.ArgumentParser('filescanner', add_help=False)
|
||||
|
||||
|
||||
def sha512sum(file: str):
|
||||
"""Use sha512sum utility to compute sha512 sum of arg:file
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue