-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating visual CLI for more user friendly experience
- Loading branch information
Showing
16 changed files
with
2,169 additions
and
286 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
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,13 @@ | ||
export ZSH="$HOME/.oh-my-zsh" | ||
|
||
ZSH_THEME="xiong-chiamiov" | ||
|
||
plugins=( | ||
git | ||
zsh-autosuggestions | ||
zsh-syntax-highlighting | ||
) | ||
|
||
source $ZSH/oh-my-zsh.sh | ||
|
||
alias a='/opt/arsenal/run' |
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,85 @@ | ||
package common | ||
|
||
import ( | ||
"fmt" | ||
"strings" | ||
) | ||
|
||
var Version = "0.4.7" | ||
var Branch = "main" | ||
var ascii_art = ` | ||
-%@%- :==-. | ||
:%:*+=:+%. .%@%#%+-:-=%@* | ||
%==#=: . .+# :@%:*==--: . =%. | ||
:@=::+#:. .+-:%. %@:*+==..=**+=-:::=#= | ||
+****=:+. +=::*#-%- .@+:*.:.:=***:.::...:*#* | ||
::%*#*:* :+- *:-.=%**. =@:+*+:.==.:::=:: .-:.:#+ | ||
:*%#**%.-%%%+ :#:#+:.=#%%@@*.:==++.=:.-#@@@#:*==+=% | ||
%#@+*: +%##+%@@@%=...==-+= ::%@*#@%#%%%@%=*=* | ||
:*#%#*. .=: **@%%%%#==+=-=+: .+@: %*+%=...*@+@: | ||
+=*+*@: ::. .@*@@@@#*+*##%*::=@* :%*-:-%*. *@: | ||
::.@=@=#= . =@@@@%=*#*%@%===+%@+=*%*:*%=%.--*#-: %* | ||
##@:==%%%@@@@#=#%#*-:-=*%@@@%+:::=%%=#-:-:-@:= .@ | ||
.%@. :==@@@%#@@@*=*#===:: .:=+***=+**.::-:-%=+ :@ | ||
*@: %%@@@%+=*@@@%%%*====-::. ::=-=:*%=-.@* | ||
.*%%%*=. :@%:. .*%=::*#@@@@%*=::::::::..:*@#-:.%%. | ||
** =%.- . @@ :@%*=:::==+**%%@@@@@@@%*=:..*@* | ||
%: =@: %@: .@+%@%#==--::::----:::.:*@*:=#%@= | ||
-%*%. :@* :. :@. :=%@@%%%#**#%%@@#-:#*: %= | ||
.@= .. #@-**. -@: .#*#%. :%=. :@* | ||
:%. -- =++@@=+*. :%. +**@@%@+-:::* %@@. | ||
%@- -* =%@@@@@@%=**: =% :#@@=%@@@@- .%.%@@* | ||
@@@+.=*:-@@@@%%%@%@%%@#: :#@@=. *#.:-@# *@@@@% | ||
%@%@%=**@@%%%%@@@@@@@*.=@#: .*%:+%*- *@%@@@@@:*= | ||
:@@@@@#@@@@@@@@@@= :*: :*@@= ** *+====-@@@@@#. *= | ||
:@@@@@@@@@@+ .=%@@- -# :#@@@@@@@@--%. | ||
:@@@@@#:.:- .=@@%= .%%%@@@@@@@*: :%@@%. | ||
#@*.:=-:=%@@*...:::::.. .=+***=#@% | ||
-@=--*@@@* :=+#%%#+:: #@@=%: | ||
.@*%@@*. .-+=:.:@@@* -#=. | ||
*@%= .: | ||
: | ||
888~-_ 888~~ ,d88~~\ ,e, 88~\ d8 | ||
888 \ 888___ 8888 Y88b e / " _888__ _d88__ | ||
888 | 888 'Y88b Y88b d8b / 888 888 888 | ||
888 / 888 'Y88b, Y888/Y88b/ 888 888 888 | ||
888_-~ 888 8888 Y8/ Y8/ 888 888 888 | ||
888 ~-_ 888 \__88P' Y Y 888 888 "88_/ | ||
RF toolbox for HAMs and professionals | ||
` | ||
|
||
func PrintASCII() { | ||
colors := []string{ | ||
"\033[31m", // Red | ||
"\033[33m", // Yellow | ||
"\033[32m", // Green | ||
"\033[36m", // Cyan | ||
"\033[34m", // Blue | ||
"\033[35m", // Magenta | ||
} | ||
reset := "\033[0m" | ||
|
||
lines := strings.Split(ascii_art, "\n") | ||
for i, line := range lines { | ||
color := colors[i%len(colors)] | ||
fmt.Println(color + line + reset) | ||
} | ||
} | ||
|
||
func PrintErrorMessage(err error) { | ||
red := "\033[31m" | ||
white := "\033[37m" | ||
reset := "\033[0m" | ||
fmt.Printf("%s[!] %s%s%s\n", red, white, err.Error(), reset) | ||
} | ||
|
||
func PrintSuccessMessage(message string) { | ||
green := "\033[32m" | ||
white := "\033[37m" | ||
reset := "\033[0m" | ||
fmt.Printf("%s[+] %s%s%s\n", green, white, message, reset) | ||
} |
Oops, something went wrong.