-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds setup.py - Not working because of main.py config path - Future terminal entry-point: hack Adds __init__.py - Future terminal entry-point: hack Updates main.py - Future terminal entry-point: hack
- Loading branch information
Showing
4 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<div align="center"> | ||
|
||
# What's HackMyCLI | ||
HackMyCLI is a command line interface to manage the hackmyvm platform.<br> | ||
It's created in Python and uses [python-fire](https://github.com/google/python-fire) for generating the interface. | ||
|
||
</div> | ||
|
||
--- | ||
|
||
# 🏁 Getting started | ||
|
||
## Installation | ||
|
||
### Using source code | ||
```bash | ||
# Clone repository and change directory to it | ||
$ git clone https://github.com/tory1103/hackmycli.git | ||
$ cd hackmycli | ||
|
||
# Install dependencies | ||
$ python3 -m pip install requirements.txt | ||
|
||
# Change dir to source | ||
$ cd src/hackmycli | ||
|
||
# Run python3 script | ||
$ python3 main.py <args> | ||
``` | ||
|
||
--- | ||
|
||
## 🎈 Documentation | ||
|
||
### Basic usage | ||
```bash | ||
# Main program syntax | ||
$ hack <command> <parameters> | ||
|
||
# Listing all avaliable machines | ||
$ hack list all --update --descendant | ||
|
||
# Downloading machine by name | ||
$ hack download <machine_name> | ||
|
||
# Downloading machine by URL | ||
# URL must be google drive link for the moment | ||
$ hack download <machine_URL> --no-verify | ||
|
||
# Using config command | ||
$ hack config fresh <username> <password> <api_key> | ||
|
||
# Using config to add custom data | ||
$ hack config add <key> <value> | ||
|
||
# Using config to remove data | ||
$ hack config remove <key> | ||
|
||
# For more information about any command | ||
# type: hack <command> --help | ||
# All commands are not avaliable for the moment, | ||
# HackMyVM API is under development | ||
$ hack <command> --help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from setuptools import setup | ||
|
||
setup( | ||
author="Adrian Toral", | ||
author_email="adriantoral@sertor.es", | ||
version="1.0.0", | ||
description="HackMyVM CLI tool", | ||
name="hackmycli", | ||
install_requires=["requests", "fire", "gdown", "oh-my-pickledb", "pint", "prettytable"], | ||
package_dir={"": "src"}, | ||
packages=["hackmycli"], | ||
entry_points = { | ||
'console_scripts': [ | ||
'hack=hackmycli.main:main' | ||
] | ||
} | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters