This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/charmbracelet/bubbles/key" | |
"github.com/charmbracelet/bubbles/textinput" | |
tea "github.com/charmbracelet/bubbletea" | |
"github.com/charmbracelet/lipgloss" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131a132,145 | |
> func (m model) checkMinLen() error { | |
> var err error | |
> | |
> c := m.inputs[m.focused] | |
> if len(c.Value()) != c.CharLimit { | |
> err = fmt.Errorf( | |
> "%s should be at least %d characters", | |
> c.Value(), | |
> c.CharLimit, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"os" | |
"os/exec" | |
tea "github.com/charmbracelet/bubbletea" | |
"github.com/charmbracelet/lipgloss" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"sort" | |
"time" | |
"github.com/mmcdole/gofeed" | |
) | |
// RSSEntry represents a single RSS entry. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Run this script in the directory that contains repos whose release dates you | |
# want to check. | |
for dir in */; do | |
# check if it's a git repo | |
cd $PWD/$dir | |
if [ -d ".git" ]; then | |
latest=$(gh release ls | grep "Latest") |
OlderNewer