Bump minor version to v1.3.0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ func RunCLI(args []string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if showVersion {
|
if showVersion {
|
||||||
_, _ = fmt.Fprintln(os.Stdout, "0.0.0")
|
_, _ = fmt.Fprintln(os.Stdout, Version)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Version = "1.3.0"
|
||||||
DefaultHost = "0.0.0.0"
|
DefaultHost = "0.0.0.0"
|
||||||
DefaultPort = 8080
|
DefaultPort = 8080
|
||||||
DefaultTheme = "xterm"
|
DefaultTheme = "xterm"
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ func (s *TerminalSession) Open(width, height int) error {
|
|||||||
return errors.New("empty command")
|
return errors.New("empty command")
|
||||||
}
|
}
|
||||||
cmd := exec.Command(argv[0], argv[1:]...)
|
cmd := exec.Command(argv[0], argv[1:]...)
|
||||||
cmd.Env = append(os.Environ(), "TERM_PROGRAM=webterm-go", "TERM_PROGRAM_VERSION=0.0.0")
|
cmd.Env = append(os.Environ(), "TERM_PROGRAM=webterm-go", "TERM_PROGRAM_VERSION="+Version)
|
||||||
file, err := pty.StartWithSize(cmd, &pty.Winsize{Cols: uint16(width), Rows: uint16(height)})
|
file, err := pty.StartWithSize(cmd, &pty.Winsize{Cols: uint16(width), Rows: uint16(height)})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user