forked from ARK-Builders/ark-core
-
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.
refactor: move ark-cli folders inside a crate
Signed-off-by: Tarek <[email protected]>
- Loading branch information
1 parent
83a57b6
commit 0d22f55
Showing
20 changed files
with
687 additions
and
124 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,22 @@ | ||
[package] | ||
name = "ark-cli" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[[bin]] | ||
name = "ark-cli" | ||
|
||
[dependencies] | ||
tokio = { version = "1.35.1", features = ["full"] } | ||
arklib = { git = "https://github.com/ARK-Builders/arklib", rev = "2c7ceda" } | ||
clap = { version = "3.0.10", features = ["derive"] } | ||
env_logger = "0.9.0" | ||
fs_extra = "1.2.0" | ||
walkdir = "2.3.2" | ||
home = "0.5.3" | ||
url = { version = "2.2.2", features = ["serde"] } | ||
serde_json = "1.0.82" | ||
serde = { version = "1.0.138", features = ["derive"] } | ||
chrono = "0.4.34" | ||
anyhow = "1.0.80" | ||
thiserror = "1.0.57" |
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,111 @@ | ||
# Ark-CLI | ||
|
||
### Installation | ||
|
||
To compile you will need openssl libraries and headers: | ||
|
||
```shell | ||
# macOS (Homebrew) | ||
$ brew install openssl@3 | ||
|
||
# macOS (MacPorts) | ||
$ sudo port install openssl | ||
|
||
# macOS (pkgsrc) | ||
$ sudo pkgin install openssl | ||
|
||
# Arch Linux | ||
$ sudo pacman -S pkg-config openssl | ||
|
||
# Debian and Ubuntu | ||
$ sudo apt-get install pkg-config libssl-dev | ||
|
||
# Fedora | ||
$ sudo dnf install pkg-config perl-FindBin openssl-devel | ||
|
||
# Alpine Linux | ||
$ apk add pkgconfig openssl-dev | ||
``` | ||
|
||
### Usage | ||
|
||
```shell | ||
ark-cli <SUBCOMMAND> | ||
|
||
OPTIONS: | ||
-h, --help Print help information | ||
|
||
SUBCOMMANDS: | ||
backup | ||
collisions | ||
help Print this message or the help of the given subcommand(s) | ||
link | ||
monitor | ||
render | ||
|
||
``` | ||
|
||
#### Backup | ||
```shell | ||
USAGE: | ||
ark-cli backup [ROOTS_CFG] | ||
|
||
ARGS: | ||
<ROOTS_CFG> | ||
|
||
OPTIONS: | ||
-h, --help Print help information | ||
``` | ||
|
||
#### Collisions | ||
```shell | ||
USAGE: | ||
ark-cli collisions [ROOT_DIR] | ||
|
||
ARGS: | ||
<ROOT_DIR> | ||
|
||
OPTIONS: | ||
-h, --help Print help information | ||
``` | ||
|
||
#### Link | ||
```shell | ||
USAGE: | ||
ark-cli link <SUBCOMMAND> | ||
|
||
OPTIONS: | ||
-h, --help Print help information | ||
|
||
SUBCOMMANDS: | ||
create | ||
help Print this message or the help of the given subcommand(s) | ||
load | ||
``` | ||
|
||
#### Monitor | ||
```shell | ||
USAGE: | ||
ark-cli monitor [ARGS] | ||
|
||
ARGS: | ||
<ROOT_DIR> | ||
<INTERVAL> | ||
|
||
OPTIONS: | ||
-h, --help Print help information | ||
``` | ||
|
||
#### Render | ||
```shell | ||
USAGE: | ||
ark-cli render [ARGS] | ||
|
||
ARGS: | ||
<PATH> | ||
<QUALITY> | ||
|
||
OPTIONS: | ||
-h, --help Print help information | ||
|
||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.