Skip to content

Commit

Permalink
chore(deps): bump github.com/charmbracelet/bubbletea from 0.26.6 to 0…
Browse files Browse the repository at this point in the history
….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 &amp;quot;ctrl+z&amp;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(), &quot;TERM=&quot;+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
dependabot[bot] authored Aug 19, 2024
1 parent 81f6fc4 commit 7f4c69e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
emperror.dev/errors v0.8.1
github.com/adrg/xdg v0.5.0
github.com/charmbracelet/bubbles v0.18.0
github.com/charmbracelet/bubbletea v0.26.6
github.com/charmbracelet/bubbletea v0.27.0
github.com/charmbracelet/lipgloss v0.12.1
github.com/dustin/go-humanize v1.0.1
github.com/erikgeiser/promptkit v0.9.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ github.com/charithe/durationcheck v0.0.10 h1:wgw73BiocdBDQPik+zcEoBG/ob8uyBHf2iy
github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoGOY1C1L6uouGNreQ=
github.com/charmbracelet/bubbles v0.18.0 h1:PYv1A036luoBGroX6VWjQIE9Syf2Wby2oOl/39KLfy0=
github.com/charmbracelet/bubbles v0.18.0/go.mod h1:08qhZhtIwzgrtBjAcJnij1t1H0ZRjwHyGsy6AL11PSw=
github.com/charmbracelet/bubbletea v0.26.6 h1:zTCWSuST+3yZYZnVSvbXwKOPRSNZceVeqpzOLN2zq1s=
github.com/charmbracelet/bubbletea v0.26.6/go.mod h1:dz8CWPlfCCGLFbBlTY4N7bjLiyOGDJEnd2Muu7pOWhk=
github.com/charmbracelet/bubbletea v0.27.0 h1:Mznj+vvYuYagD9Pn2mY7fuelGvP0HAXtZYGgRBCbHvU=
github.com/charmbracelet/bubbletea v0.27.0/go.mod h1:5MdP9XH6MbQkgGhnlxUqCNmBXf9I74KRQ8HIidRxV1Y=
github.com/charmbracelet/glamour v0.8.0 h1:tPrjL3aRcQbn++7t18wOpgLyl8wrOHUEDS7IZ68QtZs=
github.com/charmbracelet/glamour v0.8.0/go.mod h1:ViRgmKkf3u5S7uakt2czJ272WSg2ZenlYEZXT2x7Bjw=
github.com/charmbracelet/lipgloss v0.12.1 h1:/gmzszl+pedQpjCOH+wFkZr/N90Snz40J/NR7A0zQcs=
Expand Down

0 comments on commit 7f4c69e

Please sign in to comment.