delete added, more details below (#3)
- readme updates - delete command added - commands now saved in a map vs fields - login and run now ensure config has been run to prevent errors Reviewed-on: #3 Co-authored-by: jake <jake.young.dev@gmail.com> Co-committed-by: jake <jake.young.dev@gmail.com>
This commit was merged in pull request #3.
This commit is contained in:
@@ -10,7 +10,7 @@ go install code.jakeyoungdev.com/jake/mctl@main #it is recommended to use a tagg
|
||||
|
||||
## Setup
|
||||
### Configuring mctl
|
||||
mctl requires a one-time setup via the 'config' command, password is entered securely from the terminal
|
||||
mctl requires a one-time setup via the 'config' command before interacting with any servers, password is entered securely from the terminal
|
||||
```bash
|
||||
mctl config -s <serveraddress> -p <rconport>
|
||||
```
|
||||
@@ -65,6 +65,12 @@ mctl run test jake
|
||||
#will run: tp jake 0 0 0 on remote server
|
||||
```
|
||||
|
||||
### Delete saved command
|
||||
Commands can be deleted with:
|
||||
```bash
|
||||
mctl delete <name>
|
||||
```
|
||||
|
||||
## Documentation
|
||||
### Commands
|
||||
|Command|Description|
|
||||
@@ -73,6 +79,7 @@ mctl run test jake
|
||||
|login|makes connection request to the server using saved configuration and enters command loop|
|
||||
|save \<name>|saves specific command for reuse|
|
||||
|view \<name>|displays saved command|
|
||||
|delete \<name>|deletes saved command|
|
||||
|run \<name> args...|runs saved command filling placeholders with supplied args|
|
||||
|
||||
### Flags
|
||||
|
||||
Reference in New Issue
Block a user