Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump github.com/charmbracelet/bubbletea from 0.26.6 to 0…
….27.0 in the golang group (#398) Bumps the golang group with 1 update: [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea). Updates `github.com/charmbracelet/bubbletea` from 0.26.6 to 0.27.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/charmbracelet/bubbletea/releases">github.com/charmbracelet/bubbletea's releases</a>.</em></p> <blockquote> <h2>v0.27.0</h2> <h1>Suspending, environment hacking, and more</h1> <p>Hi! This release has three nice little features and some bug fixes. Let's take a look:</p> <h2>Suspending and resuming</h2> <p>At last, now you can programmatically suspend and resume programs with the <a href="https://pkg.go.dev/github.com/charmbracelet/bubbletea#Suspend"><code>tea.Suspend</code></a> command and handle resumes with the <a href="https://pkg.go.dev/github.com/charmbracelet/bubbletea#ResumeMsg"><code>tea.ResumeMsg</code></a> message:</p> <pre lang="go"><code>func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { <pre><code>// Suspend with ctrl+z! case tea.KeyMsg: switch msg.String() { case &quot;ctrl+z&quot;: m.suspended = true return m, tea.Suspend } // Handle resumes case tea.ResumeMsg: m.suspended = false return m, nil } // ... </code></pre> <p>}<br /> </code></pre></p> <p><a href="https://github.com/charmbracelet/bubbletea/blob/d6a19f0eb5a983610bd65a1647f5955abe3ee69e/examples/suspend/main.go">Example</a></p> <p>There's also a <a href="https://pkg.go.dev/github.com/charmbracelet/bubbletea#SuspendMsg"><code>tea.SuspendMsg</code></a> that flows through <code>Update</code> on suspension.</p> <p>Special thanks to <a href="https://github.com/knz"><code>@knz</code></a> for prototyping the original implementation of this.</p> <h2>Setting the environment</h2> <p>When Bubble Tea is behind <a href="https://github.com/charmbracelet/wish">Wish</a> you may have needed to pass environment variables from the remote session to the <code>Program</code>. Now you can with the all new <a href="https://pkg.go.dev/github.com/charmbracelet/bubbletea#WithEnvironment">tea.WithEnvironment</a>:</p> <pre lang="go"><code>var sess ssh.Session // ssh.Session is a type from the github.com/charmbracelet/ssh package pty, _, _ := sess.Pty() environ := append(sess.Environ(), "TERM="+pty.Term) p := tea.NewProgram(model, tea.WithEnvironment(environ) </code></pre> <h2>Requesting the window dimensions</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/charmbracelet/bubbletea/commit/d6a19f0eb5a983610bd65a1647f5955abe3ee69e"><code>d6a19f0</code></a> fix: wrap ErrProgramKilled error</li> <li><a href="https://github.com/charmbracelet/bubbletea/commit/cae9acdf7b37b5723078bae2eaa99ca14c6bcd05"><code>cae9acd</code></a> feat: set the program environment variables (<a href="https://redirect.github.com/charmbracelet/bubbletea/issues/1063">#1063</a>)</li> <li><a href="https://github.com/charmbracelet/bubbletea/commit/7ddeec9506e478fef89ba6b2d1930f0bb65e93e1"><code>7ddeec9</code></a> chore(deps): bump golang.org/x/sys from 0.23.0 to 0.24.0 (<a href="https://redirect.github.com/charmbracelet/bubbletea/issues/1077">#1077</a>)</li> <li><a href="https://github.com/charmbracelet/bubbletea/commit/3eb74e8d9dac487100b6d19ccc09b0c7820a6c7f"><code>3eb74e8</code></a> chore(deps): bump github.com/charmbracelet/glamour in /examples (<a href="https://redirect.github.com/charmbracelet/bubbletea/issues/1074">#1074</a>)</li> <li><a href="https://github.com/charmbracelet/bubbletea/commit/85ad9149f91cb8a5264d15b3b507d1c18452aa5b"><code>85ad914</code></a> chore(deps): bump golang.org/x/sync from 0.7.0 to 0.8.0 (<a href="https://redirect.github.com/charmbracelet/bubbletea/issues/1072">#1072</a>)</li> <li><a href="https://github.com/charmbracelet/bubbletea/commit/7c4d67827125e40b90b654a82f79bd2c49a8b7a7"><code>7c4d678</code></a> chore(deps): bump golang.org/x/sys from 0.22.0 to 0.23.0 (<a href="https://redirect.github.com/charmbracelet/bubbletea/issues/1073">#1073</a>)</li> <li><a href="https://github.com/charmbracelet/bubbletea/commit/7c1bfc0e55e65bc6d52ec1e126d97ee45ddbeb08"><code>7c1bfc0</code></a> fix: query window-size in a goroutine (<a href="https://redirect.github.com/charmbracelet/bubbletea/issues/1059">#1059</a>)</li> <li><a href="https://github.com/charmbracelet/bubbletea/commit/7d708384a105005dfbcec2290bfe4ea1d0e8d9f0"><code>7d70838</code></a> feat: add a cmd to request window size (<a href="https://redirect.github.com/charmbracelet/bubbletea/issues/988">#988</a>)</li> <li><a href="https://github.com/charmbracelet/bubbletea/commit/4497aa9eef1ce78044d016782e9301dcb1b7c288"><code>4497aa9</code></a> fix: reset cursor position on renderer exit (<a href="https://redirect.github.com/charmbracelet/bubbletea/issues/1058">#1058</a>)</li> <li><a href="https://github.com/charmbracelet/bubbletea/commit/72760eec537944bee689c0de4a66b3b55d826cf8"><code>72760ee</code></a> chore(deps): bump github.com/charmbracelet/x/ansi from 0.1.3 to 0.1.4 (<a href="https://redirect.github.com/charmbracelet/bubbletea/issues/1057">#1057</a>)</li> <li>Additional commits viewable in <a href="https://github.com/charmbracelet/bubbletea/compare/v0.26.6...v0.27.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/charmbracelet/bubbletea&package-manager=go_modules&previous-version=0.26.6&new-version=0.27.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details>
- Loading branch information