website/scripts/docsmg: Add install script and readme draft (#10659)

* add docsmg tool

* moved to the correct scripts directory

* removed test files

* added install script and readme draft to docsmg
This commit is contained in:
Bama
2024-07-26 16:52:10 -05:00
committed by GitHub
parent 97726b1cbe
commit d05e3e60c3
3 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,7 @@
# Docsmg
## Steps to install
1. Install [rustup](https://rustup.rs/) if its not already installed
2. Update to the latest version of rust if you dont already have it with `rustup update`
3. Install the cli tool with `curl https://raw.githubusercontent.com/goauthentik/authentik/main/website/scripts/docsmg/install.sh | sh`

View File

@ -0,0 +1,4 @@
cargo install --git https://github.com/goauthentik/authentik
sudo wget https://raw.githubusercontent.com/goauthentik/authentik/main/website/scripts/docsmg/m.bash -O /bin/map
sudo chmod 755 /bin/map
curl https://raw.githubusercontent.com/goauthentik/authentik/main/website/scripts/docsmg/mcomplete.bash >> ~/.zshrc

View File

@ -1,5 +1,3 @@
#!/bin/bash
_completions () {
if [[ -z "${MIGRATE_PATH}" ]];
then MIGRATE_PATH="./";
@ -20,4 +18,4 @@ _completions () {
done
}
complete -o nospace -o filenames -F _completions m.bash
complete -o nospace -o filenames -F _completions map