Compare commits
4 Commits
4d2e4ce533
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| c078632691 | |||
| 52e25aad77 | |||
| 9f996f60c6 | |||
| 4c152f8089 |
3
.changes/v0.12.0.md
Normal file
3
.changes/v0.12.0.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
## v0.12.0 - 2026-02-11
|
||||||
|
### Changed
|
||||||
|
* internal logic handling for cron webserver
|
||||||
@@ -6,6 +6,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
|||||||
and is generated by [Changie](https://github.com/miniscruff/changie).
|
and is generated by [Changie](https://github.com/miniscruff/changie).
|
||||||
|
|
||||||
|
|
||||||
|
## v0.12.0 - 2026-02-11
|
||||||
|
### Changed
|
||||||
|
* internal logic handling for cron webserver
|
||||||
|
|
||||||
## v0.11.5 - 2026-02-10
|
## v0.11.5 - 2026-02-10
|
||||||
### Changed
|
### Changed
|
||||||
* Command.Type: scriptFile no longer requests psudoterminal
|
* Command.Type: scriptFile no longer requests psudoterminal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
const versionStr = "0.11.5"
|
const versionStr = "0.12.0"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
versionCmd = &cobra.Command{
|
versionCmd = &cobra.Command{
|
||||||
|
|||||||
@@ -73,6 +73,8 @@ func (opts *ConfigOpts) Cron() {
|
|||||||
srv := server.NewServer(s, opts.GoCron.Port)
|
srv := server.NewServer(s, opts.GoCron.Port)
|
||||||
// srv := server.NewServer(scheduler, 8080, server.WithTitle("My Custom Scheduler")) // with custom title if you want to customize the title of the UI (optional)
|
// srv := server.NewServer(scheduler, 8080, server.WithTitle("My Custom Scheduler")) // with custom title if you want to customize the title of the UI (optional)
|
||||||
opts.Logger.Info().Msgf("GoCron UI available at http://%s", opts.GoCron.BindAddress)
|
opts.Logger.Info().Msgf("GoCron UI available at http://%s", opts.GoCron.BindAddress)
|
||||||
opts.Logger.Fatal().Msg(http.ListenAndServe(opts.GoCron.BindAddress, srv.Router).Error())
|
if err := http.ListenAndServe(opts.GoCron.BindAddress, srv.Router); err != nil {
|
||||||
|
opts.Logger.Fatal().Msg(err.Error())
|
||||||
|
}
|
||||||
select {} // wait forever
|
select {} // wait forever
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -764,9 +764,9 @@ func (command *Command) prepareScriptBuffer() (*bytes.Buffer, error) {
|
|||||||
func (command *Command) prepareScriptFileBuffer() (*bytes.Buffer, error) {
|
func (command *Command) prepareScriptFileBuffer() (*bytes.Buffer, error) {
|
||||||
var buffer bytes.Buffer
|
var buffer bytes.Buffer
|
||||||
|
|
||||||
if !command.SaveShellHistory {
|
// if !command.SaveShellHistory {
|
||||||
buffer.WriteString("unset HISTFILE\nexport HISTSIZE=0\nexport SAVEHIST=0\n")
|
// buffer.WriteString("unset HISTFILE\nexport HISTSIZE=0\nexport SAVEHIST=0\n")
|
||||||
}
|
// }
|
||||||
|
|
||||||
for _, envVar := range command.Environment {
|
for _, envVar := range command.Environment {
|
||||||
fmt.Fprintf(&buffer, "export %s", envVar)
|
fmt.Fprintf(&buffer, "export %s", envVar)
|
||||||
|
|||||||
@@ -80,8 +80,6 @@ type (
|
|||||||
|
|
||||||
ScriptEnvFile string `yaml:"scriptEnvFile"`
|
ScriptEnvFile string `yaml:"scriptEnvFile"`
|
||||||
|
|
||||||
SaveShellHistory bool `yaml:"saveShellHistory,omitempty"`
|
|
||||||
|
|
||||||
Output struct {
|
Output struct {
|
||||||
File string `yaml:"file,omitempty"`
|
File string `yaml:"file,omitempty"`
|
||||||
ToLog bool `yaml:"toLog,omitempty"`
|
ToLog bool `yaml:"toLog,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user