streamlitSpec top-level property
Completion spec for streamlit CLI
Implementation
final FigSpec streamlitSpec = FigSpec(
name: 'streamlit',
description: 'Streamlit',
subcommands: [
Subcommand(
name: 'activate',
description: 'Activate Streamlit by entering your email',
icon: 'âī¸'
),
Subcommand(
name: 'cache',
description: 'Manage the Streamlit cache',
icon: 'đ',
subcommands: [
Subcommand(
name: 'clear',
description: 'Clear st.cache, st.memo, and st.singleton caches',
icon: 'đ'
)
]
),
Subcommand(
name: 'config',
description: 'Manage Streamlit\'s config settings',
icon: 'âī¸',
subcommands: [
Subcommand(
name: 'show',
description: 'Show all of Streamlit\'s config settings',
icon: 'đ'
)
]
),
Subcommand(
name: 'docs',
description: 'Show help in browser',
icon: 'đĄ'
),
Subcommand(
name: 'hello',
description: 'Runs the Hello World script',
icon: 'đ,'
),
Subcommand(
name: 'help',
description: 'Print the help message',
icon: 'â'
),
Subcommand(
name: 'run',
description: 'Run a Python script, piping stderr to Streamlit',
icon: 'đ',
args: [
Arg(
name: 'file',
description: 'The Python script to run'
)
]
),
Subcommand(
name: 'version',
description: 'Print Streamlit\'s version number',
icon: 'đ¯'
)
],
options: [
Option(
name: '--log_level',
description: 'Set the log level',
args: [
Arg(
suggestions: [
FigSuggestion(
name: 'error',
icon: 'đĨ'
),
FigSuggestion(
name: 'warning',
icon: 'â ī¸'
),
FigSuggestion(
name: 'info',
icon: 'âšī¸'
),
FigSuggestion(
name: 'debug',
icon: 'đ'
)
]
)
]
),
Option(
name: '--help',
description: 'Show a help message and exit'
),
Option(
name: '--version',
description: 'Show the version and exit'
)
]
);