Commit Graph

54 Commits

Author SHA1 Message Date
9d646297c7 fix: check for nil Command.Hooks in ExecuteHooks [#12] 2024-11-15 10:46:27 -06:00
b7b002bd72 Added: Hooks for Commands.[name]: error, success, and final. Closes [#12]
Added Command.generateLogger() method.

Fixed: make command logger be used for errors, not just when running the command.
2024-11-14 21:10:49 -06:00
b8a63f39f5 add working command hooks
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed
2024-11-11 22:44:28 -06:00
2aeb435167 new commands.[name].type: script; update templates 2024-10-15 08:49:13 -05:00
51f5084dd0 more work on env variable parsing 2024-09-13 20:47:59 -05:00
a300f696d3 add list config file and relevant config in main config file. other minor changes
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed
2024-08-28 15:06:25 -05:00
a4214b2b3f v0.4.0
Some checks failed
ci/woodpecker/push/gitea Pipeline was successful
ci/woodpecker/push/go-lint Pipeline failed
ci/woodpecker/tag/gitea Pipeline failed
ci/woodpecker/tag/go-lint Pipeline failed
ci/woodpecker/tag/publish-docs Pipeline is running
ci/woodpecker/push/publish-docs Pipeline was successful
2023-09-08 23:42:13 -05:00
6ccb75f4fa added scriptEnvFile to command.commandName object
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed
2023-08-06 22:27:51 -05:00
b8a82b2836 update mongo methods
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed
2023-07-29 21:23:31 -05:00
78428a49fc update Go Deps, change log size to 50 MBs, clarify messages 2023-07-29 21:20:53 -05:00
10a6342233 update error message 2023-07-21 20:29:07 -05:00
7c4868ee4b Revert "Revert "make remote commands run and not fail if an SSH session failed to be created""
This reverts commit affdd0abfd.
2023-07-20 21:21:40 -05:00
affdd0abfd Revert "make remote commands run and not fail if an SSH session failed to be created"
This reverts commit 7224661c71.
2023-07-20 21:20:54 -05:00
7224661c71 make remote commands run and not fail if an SSH session failed to be created 2023-07-20 21:20:16 -05:00
4b382bddd9 v0.3.0
* Getting environment variables and passwords from Vault (not tested
yet)
* Vault configuration to config (not tested yet)
* Ability to run scripts from file on local machine on the remote host
* Ability to get ouput in the notification of a list for individual
commands or all commands
* Make SSH connections close after all commands have been run; reuse
previous connections if needed
2023-07-01 21:46:54 -05:00
5e7c52997c added getting ENV vars from Vault 2023-05-12 00:42:14 -05:00
f7676e73ba Make host connections close last 2023-03-13 20:25:27 -05:00
2ca5f193e4 Close host connections after all command have been run, added some flags to version subcommand 2023-03-10 16:01:02 -06:00
ee83586072 Version 0.2.4
* Notifications now display errors and the output of the failed command.
* CI configs for GitHub and Woodpecker
* Added `version` subcommand
* Console logging can be disabled by setting `console-disabled` in the
`logging` object
* If Host was not defined for an incomplete `hosts` object, any commands
would fail as they could not look up the values in the SSH config files.
2023-02-18 22:42:15 -06:00
02321870b5 fix for remote host ports 2023-02-12 08:48:46 -06:00
3e9138e05a fix for remote host ports 2023-02-12 08:29:55 -06:00
37c20aaafa added new features
- expanding `environment` vars in cmd section
- support for connecting to one proxy/bastion host
- better notification text layout
- better error message on private key failing to open
2023-02-11 23:50:19 -06:00
c3fa74e442 fix for remote host ports 2023-02-02 11:24:01 -06:00
059f4c0097 added some features
- Added `cron` command to run lists with `cron` time specifed
- Changed `-c` flag to `-f` flag for passing config file
- Modified some config keys
  - cmdArgs -> Args
  - Got rid of `hosts.config`
- better SSH handling
  - respects values in config file
2023-02-01 23:54:48 -06:00
03f54c8714 Added command and list execution (#1), small touchups
- Added exec command to execute individual commands
- Added --lists, -l flag to backup command
  - Run command lists (#1)
- Small touchups and documentation
2023-01-20 02:42:52 -06:00
3960d5ec75 small changes, added goreleaser 2023-01-17 22:47:34 -06:00
8e9d563d1f fixes 2023-01-17 00:57:23 -06:00
e2f4553303 A runnable command
- Added backup sub-command
- Added better parsing for config file
- Basis for notifications, no running after a command yet
- Updated docs and added License
2023-01-17 00:55:28 -06:00
15a7ca6c3d Progress on sub-commands, added unmarshalling 2023-01-09 22:18:56 -06:00
ae87ccb4b5 reverted to on hostname, added zerolog 2023-01-03 23:57:19 -06:00
6b85913316 added zerolog 2023-01-03 20:09:02 -06:00
9d07298eb0 ssh host key checking with ssh/knownhosts pkg 2023-01-02 20:02:54 -06:00
9648fe8ab9 debug 2023-01-02 17:50:40 -06:00
14650c4db1 add debug 2023-01-02 17:47:10 -06:00
3863f34fc0 base64 encoding for host 2023-01-02 17:41:42 -06:00
abec574b76 more work on host key checking 2023-01-02 14:55:18 -06:00
198d0ca4b9 fix for host key 2023-01-02 14:46:47 -06:00
b25c7ea5ea re-add panic 2023-01-02 13:30:41 -06:00
59c2c028c8 add ssh timeout 2023-01-02 13:29:12 -06:00
2f73df73b1 debug 2023-01-02 13:25:39 -06:00
34af511a95 start host key auth 2023-01-02 13:18:36 -06:00
c45b537b3f debug info 2023-01-02 12:51:05 -06:00
dabbf6d795 change name 2023-01-02 12:30:29 -06:00
a5f4ba3c2a update connectErr err to panic for multiple hosts 2023-01-02 12:28:33 -06:00
42034a7c15 changes 2023-01-02 12:05:10 -06:00
d701d26938 changes in wording 2023-01-02 12:04:00 -06:00
0a1dbb61a1 changes to ssh configuration 2023-01-02 12:00:11 -06:00
52d49e70f2 redesign started 2023-01-01 23:39:19 -06:00
2daae5cf9e use ssh stdlib 2022-12-26 23:20:11 -06:00
ab12b02dc9 add base for command-line commands 2022-12-15 10:42:21 -06:00