https://github.com/alexsjones/shed
https://github.com/alexsjones/shed
golang scheduler shell
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexsjones/shed
- Owner: AlexsJones
- Created: 2017-05-11T19:49:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-04T08:46:08.000Z (about 9 years ago)
- Last Synced: 2025-08-03T03:29:41.827Z (11 months ago)
- Topics: golang, scheduler, shell
- Language: Go
- Size: 5.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
_______________/\\\________________________________/\\\__
______________\/\\\_______________________________\/\\\__
______________\/\\\_______________________________\/\\\__
__/\\\\\\\\\\_\/\\\_____________/\\\\\\\\_________\/\\\__
_\/\\\//////__\/\\\\\\\\\\____/\\\/////\\\___/\\\\\\\\\__
_\/\\\\\\\\\\_\/\\\/////\\\__/\\\\\\\\\\\___/\\\////\\\__
_\////////\\\_\/\\\___\/\\\_\//\\///////___\/\\\__\/\\\__
__/\\\\\\\\\\_\/\\\___\/\\\__\//\\\\\\\\\\_\//\\\\\\\/\\_
_\//////////__\///____\///____\//////////___\///////\//__
```
Shell script scheduling.
Automate repetitive tasks and save them as a `Shedfile`
Offers `Shedfile` encryption so you can give a sensitive set of steps for someone to run
who you might not necessarily want to see all the steps
Hooya.
Watch an example: http://showterm.io/bf94465cc57b34a5fcf36
# Install
```
go get github.com/AlexsJones/shed
```
```
clear clear the current stack
exit exit the program
help display help
list list execution order
load Loads a local ShedFile into a schedule
logs logs from an execution
push push a k8s config-map path
retry retry a certain action based on index
run Starts running k8s config-map paths
save Saves out a new ShedFile
```
# Example
I want to automate a simple workflow for kubernetes deployment...
```
# In my kubernetes project directory
>>> push kubectl config view
Pushing -> kubectl
>>> push ls
Pushing -> ls
>>> list
+------+------------------+-----------+----------+------------+
| STEP | RESOURCE LOCATOR | VALIDATED | EXECUTED | SUCCESSFUL |
+------+------------------+-----------+----------+------------+
| 1 | kubectl | ✓ | ✗ | ? |
| 2 | ls | ✓ | ✗ | ? |
+------+------------------+-----------+----------+------------+
>>> push kubectl create -f .
Pushing -> kubectl
>>> list
+------+------------------+-----------+----------+------------+
| STEP | RESOURCE LOCATOR | VALIDATED | EXECUTED | SUCCESSFUL |
+------+------------------+-----------+----------+------------+
| 1 | kubectl | ✓ | ✗ | ? |
| 2 | ls | ✓ | ✗ | ? |
| 3 | kubectl | ✓ | ✗ | ? |
+------+------------------+-----------+----------+------------+
>>> save
Created new Shedfile...
>>> run
```