-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a4f6c8
commit 37c1f2b
Showing
16 changed files
with
101 additions
and
26 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 |
---|---|---|
|
@@ -7,3 +7,5 @@ mock.go | |
dist/ | ||
id_ed25519* | ||
vendor | ||
ignore.gif | ||
**/*/my_logs.txt |
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 |
---|---|---|
|
@@ -17,13 +17,18 @@ An efficient terminal application/TUI for interacting with your [HashiCorp Nomad | |
- See full job or allocation specs | ||
- Save any content to a local file | ||
|
||
![](./img/wander.gif) | ||
`wander` is written with tools from [Charm](https://charm.sh/). | ||
|
||
![](./img/wander_flow.drawio.png) | ||
[Feature requests and bug reports are welcome](https://github.com/robinovitch61/wander/issues/new/choose). | ||
|
||
`wander` is written with tools from [Charm](https://charm.sh/). | ||
## Demo | ||
|
||
[Feature requests and bug reports for wander are welcome](https://github.com/robinovitch61/wander/issues/new/choose). | ||
![](./img/wander.gif) | ||
|
||
[Screenshots](./img/screenshots#readme) | ||
|
||
## Flow Diagram | ||
![](./img/wander_flow.drawio.png) | ||
|
||
## Installation | ||
|
||
|
@@ -50,17 +55,11 @@ yay -S wander-bin | |
|
||
# with go (https://go.dev/doc/install) | ||
go install github.com/robinovitch61/wander@latest | ||
|
||
# build from source | ||
git clone [email protected]:robinovitch61/wander.git | ||
cd wander | ||
go build | ||
mv ./wander /usr/local/bin # or somewhere else in your PATH | ||
|
||
# alternatively download prebuilt release from https://github.com/robinovitch61/wander/releases | ||
# and move the unpacked executable to somewhere in your PATH, e.g. /usr/local/bin | ||
``` | ||
|
||
You can also download [prebuilt releases](https://github.com/robinovitch61/wander/releases) and move the unpacked | ||
executable to somewhere in your `PATH`, e.g. `/usr/local/bin`. | ||
|
||
## Usage | ||
|
||
Run the app by running `wander` in a terminal. See `wander --help` and config section below for details. | ||
|
@@ -219,6 +218,26 @@ Example yaml file showing all options (copy this into `$HOME/.wander.yaml` and u | |
#wander_logo_color: "#DBBD70" | ||
``` | ||
|
||
## Exec Command | ||
|
||
`wander` ships with an `exec` command similar to the [`nomad alloc exec`](https://developer.hashicorp.com/nomad/docs/commands/alloc/exec) | ||
utility. Example usage: | ||
|
||
```shell | ||
# specify job and task, assuming single allocation | ||
wander exec alright_stop --task redis echo "hi" | ||
|
||
# specify allocation, assuming single task | ||
wander exec 3dca0982 echo "hi" | ||
|
||
# use prefixes of jobs or allocation ids | ||
wander exec al echo "hi" # prefix of job "alright_stop" | ||
wander exec 3d echo "hi" # prefix of alloc ID "3dca0982" | ||
|
||
# specify flags for the exec command with -- | ||
wander exec alright_stop --task redis -- echo -n "hi" | ||
``` | ||
|
||
## SSH App | ||
|
||
`wander` can be served via ssh application. For example, you could host an internal ssh application for your company | ||
|
@@ -232,8 +251,7 @@ Serve the ssh app with `wander serve`. | |
|
||
## Trying It Out | ||
|
||
You can try `wander` out by running a local nomad cluster in dev mode | ||
following [these instructions](https://learn.hashicorp.com/tutorials/nomad/get-started-run?in=nomad/get-started): | ||
You can try `wander` out by running a local development nomad cluster following [these instructions](https://learn.hashicorp.com/tutorials/nomad/get-started-run?in=nomad/get-started): | ||
|
||
```sh | ||
# in first terminal session, start and leave nomad running in dev mode | ||
|
@@ -261,9 +279,14 @@ In this case, you're responsible for ensuring the specified version is in sync w | |
|
||
## Development | ||
|
||
The `scripts/dev.sh` script watches the source code and rebuilds the app on changes | ||
using [entr](https://github.com/eradman/entr). Install the latest release of `nomad`. | ||
To manually build: | ||
|
||
```shell | ||
git clone [email protected]:robinovitch61/wander.git | ||
cd wander | ||
go build # outputs ./wander executable | ||
``` | ||
|
||
`wander` runs the built app. You must rerun it on rebuild. | ||
The [scripts](/scripts) directory contains various development helper scripts. | ||
|
||
If the `WANDER_DEBUG` environment variable is set to `true`, the `dev.Debug(s string)` function outputs to `wander.log`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,16 @@ | ||
# All Jobs | ||
![](./All_Jobs.png) | ||
# Global Events | ||
![](./Global_Events.png) | ||
# All Tasks | ||
![](./All_Tasks.png) | ||
# Exec | ||
![](./Exec.png) | ||
# Tasks for Job | ||
![](./Tasks_for_Job.png) | ||
# Task Logs | ||
![](./Task_Logs.png) | ||
# Save Any View to Local File | ||
![](./Save_Any_View_to_Local_File.png) | ||
# Allocation Statistics | ||
![](./Allocation_Statistics.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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