Skip to content

Commit 6ca5d42

Browse files
committed
chore: add Script to auto-export create_command_partials
1 parent 353e3da commit 6ca5d42

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import subprocess
2+
from pathlib import Path
3+
4+
5+
subcommands = [
6+
"trade",
7+
"create-userdir",
8+
"new-config",
9+
"show-config",
10+
"new-strategy",
11+
"download-data",
12+
"convert-data",
13+
"convert-trade-data",
14+
"trades-to-ohlcv",
15+
"list-data",
16+
"backtesting",
17+
"backtesting-show",
18+
"backtesting-analysis",
19+
"edge",
20+
"hyperopt",
21+
"hyperopt-list",
22+
"hyperopt-show",
23+
"list-exchanges",
24+
"list-markets",
25+
"list-pairs",
26+
"list-strategies",
27+
"list-hyperoptloss",
28+
"list-freqaimodels",
29+
"list-timeframes",
30+
"show-trades",
31+
"test-pairlist",
32+
"convert-db",
33+
"install-ui",
34+
"plot-dataframe",
35+
"plot-profit",
36+
"webserver",
37+
"strategy-updater",
38+
"lookahead-analysis",
39+
"recursive-analysis",
40+
]
41+
42+
result = subprocess.run(["freqtrade", "--help"], capture_output=True, text=True)
43+
44+
with Path("docs/commands/main.md").open("w") as f:
45+
f.write(f"```\n{result.stdout}\n```\n")
46+
47+
48+
for command in subcommands:
49+
print(f"Running for {command}")
50+
result = subprocess.run(["freqtrade", command, "--help"], capture_output=True, text=True)
51+
52+
with Path(f"docs/commands/{command}.md").open("w") as f:
53+
f.write(f"```\n{result.stdout}\n```\n")

0 commit comments

Comments
 (0)