Skip to content

Commit

Permalink
stupid fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NohamR committed Aug 22, 2024
1 parent 302f543 commit 5739d3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ setx GOPLOAD_PRIVATE_PARENT_ID "UUID"

Linux/MacOS :
```bash
export GOPLOAD_TOKEN = "XXXXXXX"
export GOPLOAD_PRIVATE_PARENT_ID = "UUID"
export GOPLOAD_TOKEN="XXXXXXX"
export GOPLOAD_PRIVATE_PARENT_ID="UUID"
```

# Usage :
Expand All @@ -26,7 +26,9 @@ gopload -i 'file.txt'
````

# To do :
- acc stats
- env via CLI
- finish README.md
- download
- build + release
- build + release
- chiffrer et dechiffrer les uploads
4 changes: 2 additions & 2 deletions gopload.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def opt():
parser.add_argument("--log-level",type=str,choices=["DEBUG", "ERROR", "INFO", "OFF", "WARN"],default="INFO",help="Set log level [default: INFO]",)
return parser.parse_args()

def main():
def init():
args = opt()
log_format = "%(asctime)s %(levelname)s: %(message)s"
logging.basicConfig(level=getattr(logging, args.log_level.upper()),format=log_format,datefmt="%H:%M:%S",)
Expand Down Expand Up @@ -220,4 +220,4 @@ def main():
sys.exit("No file or folder specified")

if __name__ == "__main__":
main()
init()

0 comments on commit 5739d3a

Please sign in to comment.