Files
iris-context/commands/python/streamlit.go
T
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

31 lines
1.2 KiB
Go

package python
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "streamlit",
Description: "Streamlit",
Subcommands: []spec.Subcommand{
{Name: "activate", Description: "Activate Streamlit by entering your email"},
{Name: "cache", Description: "Manage the Streamlit cache"},
{Name: "clear", Description: "Clear st.cache, st.memo, and st.singleton caches"},
{Name: "config", Description: "Manage Streamlit's config settings"},
{Name: "show", Description: "Show all of Streamlit's config settings"},
{Name: "docs", Description: "Show help in browser"},
{Name: "hello", Description: "Runs the Hello World script"},
{Name: "help", Description: "Print the help message"},
{Name: "run", Description: "Run a Python script, piping stderr to Streamlit"},
{Name: "file", Description: "The Python script to run"},
{Name: "version", Description: "Print Streamlit's version number"},
},
Options: []spec.Option{
{Name: "--log_level", Description: "Set the log level"},
{Name: "--help", Description: "Show a help message and exit"},
{Name: "--version", Description: "Show the version and exit"},
},
})
}