Skip to content
Myr

fix: fix typos

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by bashbunni · committed by Christian Rocha · parent 14422f5 · Browse files · 3 files+11 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+11 added−12 removed

  • other:+11 added−12 removed

3 files+11 added−12 removed

modified:tutorials/basics/README.md+8 added-7 removed
12 unmodified lines
13[elm]: https://guide.elm-lang.org/architecture/1415## Enough! Let's get to it.1617For this tutorial we're making a shopping list.17For this tutorial, we're making a shopping list.1819To start we'll define our package and import some libraries. Our only external20import will be the Bubble Tea library, which we'll call `tea` for short.21
29 unmodified lines
51```5253## Initialization5455Next we’ll define our application’s initial state. In this case we’re defining56a function to return our initial model, however we could just as easily define55Next, we’ll define our application’s initial state. In this case, we’re defining56a function to return our initial model, however, we could just as easily define57the initial model as a variable elsewhere, too.5859```go60func initialModel() model {
8 unmodified lines
69 }70}71```7273Next we define the `Init` method. `Init` can return a `Cmd` that could perform74some initial I/O. For now, we don't need to do any I/O, so for the command73Next, we define the `Init` method. `Init` can return a `Cmd` that could perform74some initial I/O. For now, we don't need to do any I/O, so for the command,75we'll just return `nil`, which translates to "no command."7677```go78func (m model) Init() tea.Cmd {
72 unmodified lines
151152## The View Method153154At last, it’s time to render our UI. Of all the methods, the view is the155simplest. We look at the model in it's current state and use it to return155simplest. We look at the model in its current state and use it to return156a `string`. That string is our UI!157158Because the view describes the entire UI of your application, you don’t have to159worry about redrawing logic and stuff like that. Bubble Tea takes care of it
69 unmodified lines
229We'd love to hear your thoughts on this tutorial. Feel free to drop us a note!230231* [Twitter](https://twitter.com/charmcli)232* [The Fediverse](https://mastodon.technology/@charm)233* [Slack](https://charm.sh/slack)234235***236237Part of [Charm](https://charm.sh).238238<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge-unrounded.jpg" width="400"></a>239<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>240241Charm热爱开源 • Charm loves open source
modified:tutorials/commands/README.md+2 added-1 removed
234 unmodified lines
235We'd love to hear your thoughts on this tutorial. Feel free to drop us a note!236237* [Twitter](https://twitter.com/charmcli)238* [The Fediverse](https://mastodon.technology/@charm)239* [Slack](https://charm.sh/slack)240241***242243Part of [Charm](https://charm.sh).244244<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge-unrounded.jpg" width="400"></a>245<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>246247Charm热爱开源 • Charm loves open source
modified:README.md+1 added-4 removed
311 unmodified lines
312[bubblezone]: https://github.com/lrstanley/bubblezone313[termenv]: https://github.com/muesli/termenv314[reflow]: https://github.com/muesli/reflow315316## Additional utility libraries to use with Bubble Tea317318316## Bubble Tea in the Wild317318For some Bubble Tea programs in production, see:319
11 unmodified lines
331* [fork-cleaner](https://github.com/caarlos0/fork-cleaner): cleans up old and inactive forks in your GitHub account332* [gambit](https://github.com/maaslalani/gambit): play chess in the terminal333* [gembro](https://git.sr.ht/~rafael/gembro): a mouse-driven Gemini browser334* [gh-b](https://github.com/joaom00/gh-b): GitHub CLI extension to easily manage your branches338* [gh-dash](https://www.github.com/dlvhdr/gh-dash): GitHub cli extension to display a dashboard of PRs and issues335* [gh-dash](https://www.github.com/dlvhdr/gh-dash): GitHub CLI extension to display a dashboard of PRs and issues336* [gitflow-toolkit](https://github.com/mritd/gitflow-toolkit): a GitFlow submission tool337* [Glow](https://github.com/charmbracelet/glow): a markdown reader, browser and online markdown stash338* [gocovsh](https://github.com/orlangure/gocovsh): explore Go coverage reports from the CLI339* [httpit](https://github.com/gonetx/httpit): a rapid http(s) benchmark tool
55 unmodified lines