-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathstreamlit.ts
93 lines (92 loc) · 2.08 KB
/
streamlit.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { filepaths } from "@fig/autocomplete-generators";
const completionSpec: Fig.Spec = {
name: "streamlit",
description: "Streamlit",
subcommands: [
{
name: "activate",
description: "Activate Streamlit by entering your email",
icon: "✉️",
},
{
name: "cache",
description: "Manage the Streamlit cache",
icon: "🗂",
subcommands: [
{
name: "clear",
description: "Clear st.cache, st.memo, and st.singleton caches",
icon: "🗑",
},
],
},
{
name: "config",
description: "Manage Streamlit's config settings",
icon: "⚙️",
subcommands: [
{
name: "show",
description: "Show all of Streamlit's config settings",
icon: "👀",
},
],
},
{
name: "docs",
description: "Show help in browser",
icon: "💡",
},
{
name: "hello",
description: "Runs the Hello World script",
icon: "👋,",
},
{
name: "help",
description: "Print the help message",
icon: "❓",
},
{
name: "run",
description: "Run a Python script, piping stderr to Streamlit",
icon: "🎈",
args: {
name: "file",
description: "The Python script to run",
generators: filepaths({
extensions: ["py"],
editFileSuggestions: { priority: 76 },
}),
},
},
{
name: "version",
description: "Print Streamlit's version number",
icon: "💯",
},
],
options: [
{
name: "--log_level",
description: "Set the log level",
args: {
suggestions: [
{ name: "error", icon: "🔥" },
{ name: "warning", icon: "⚠️" },
{ name: "info", icon: "ℹ️" },
{ name: "debug", icon: "🐛" },
],
},
},
{
name: "--help",
description: "Show a help message and exit",
},
{
name: "--version",
description: "Show the version and exit",
},
],
};
export default completionSpec;