-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/std tui #51
feat/std tui #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideas for setting up readme testdata
cells/std/cli/targets.go
Outdated
type item struct { | ||
name string `json:"__std_name"` | ||
organelle string `json:"__std_organelle"` | ||
cell string `json:"__std_cell"` | ||
clade string `json:"__std_clade"` | ||
description string `json:"__std_description"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add here:
readme string `json:"__std_readme`
cells/std/cli/randomitems.go
Outdated
clades []string | ||
cladeIndex int | ||
descs []string | ||
descIndex int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here an appropriate implementarion for generating dummy simple markdowm readmes
cells/std/cli/randomitems.go
Outdated
"Sure, why not?", | ||
} | ||
|
||
r.shuffle.Do(func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r.shuffle has just been unconditionally created in this very function, so it will always execute code in this anonymous function, set "done" flag internally and will never be touched again.
cells/std/cli/randomitems.go
Outdated
"Sure, why not?", | ||
} | ||
|
||
r.shuffle.Do(func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
cells/std/cli/randomitems.go
Outdated
r.mtx.Lock() | ||
defer r.mtx.Unlock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And also I saw only one place where these generators are called and it's very not threaded, so I don't think locks are needed here.
Maybe this PR is relevant? charmbracelet/bubbletea#237 |
23bb300
to
2a134d4
Compare
This landed mostly in master via: ab72ee0 |
WIP: std TUI
WIP: std TUI
WIP: fix filter
status with actual run command of any given action -> help to find the corresponding CI command
eg:
In a script, run: 'std //cell/organelle:target action'
spinner during initial load of
__std
metadata?
to render markdown (https://github.com/knipferrc/teacup/blob/main/markdown/markdown.go) info per target in a overlay of https://github.com/charmbracelet/bubbles#viewport (add__std_readme
meta) using a dialog box:std ...
correspondence CLI commands based oncobra
Hack this branch: