|
4 | 4 | import sys |
5 | 5 | import datetime |
6 | 6 | import time |
7 | | -import git |
8 | | - |
9 | | -import git_sim.add |
10 | | -import git_sim.branch |
11 | | -import git_sim.cherrypick |
12 | | -import git_sim.commit |
13 | | -import git_sim.log |
14 | | -import git_sim.merge |
15 | | -import git_sim.rebase |
16 | | -import git_sim.reset |
17 | | -import git_sim.restore |
18 | | -import git_sim.revert |
19 | | -import git_sim.stash |
20 | | -import git_sim.status |
21 | | -import git_sim.tag |
22 | | -import git_sim.switch |
23 | | -import git_sim.checkout |
24 | | -import git_sim.fetch |
25 | | -import git_sim.pull |
26 | | -import git_sim.push |
27 | | -import git_sim.clone |
| 7 | + |
| 8 | +import git_sim.commands |
28 | 9 |
|
29 | 10 | from git_sim.settings import ImgFormat, VideoFormat, settings |
30 | | -from manim import config, WHITE |
31 | 11 |
|
32 | 12 | app = typer.Typer(context_settings={"help_option_names": ["-h", "--help"]}) |
33 | 13 |
|
@@ -146,6 +126,9 @@ def main( |
146 | 126 | help="Color commits by parameter, such as author", |
147 | 127 | ), |
148 | 128 | ): |
| 129 | + import git |
| 130 | + from manim import config, WHITE |
| 131 | + |
149 | 132 | settings.animate = animate |
150 | 133 | settings.n = n |
151 | 134 | settings.auto_open = auto_open |
@@ -199,25 +182,25 @@ def main( |
199 | 182 | config.output_file = "git-sim-" + ctx.invoked_subcommand + "_" + t + ".mp4" |
200 | 183 |
|
201 | 184 |
|
202 | | -app.command()(git_sim.add.add) |
203 | | -app.command()(git_sim.branch.branch) |
204 | | -app.command()(git_sim.cherrypick.cherry_pick) |
205 | | -app.command()(git_sim.commit.commit) |
206 | | -app.command()(git_sim.log.log) |
207 | | -app.command()(git_sim.merge.merge) |
208 | | -app.command()(git_sim.rebase.rebase) |
209 | | -app.command()(git_sim.reset.reset) |
210 | | -app.command()(git_sim.restore.restore) |
211 | | -app.command()(git_sim.revert.revert) |
212 | | -app.command()(git_sim.stash.stash) |
213 | | -app.command()(git_sim.status.status) |
214 | | -app.command()(git_sim.tag.tag) |
215 | | -app.command()(git_sim.switch.switch) |
216 | | -app.command()(git_sim.checkout.checkout) |
217 | | -app.command()(git_sim.fetch.fetch) |
218 | | -app.command()(git_sim.pull.pull) |
219 | | -app.command()(git_sim.push.push) |
220 | | -app.command()(git_sim.clone.clone) |
| 185 | +app.command()(git_sim.commands.add) |
| 186 | +app.command()(git_sim.commands.branch) |
| 187 | +app.command()(git_sim.commands.checkout) |
| 188 | +app.command()(git_sim.commands.cherry_pick) |
| 189 | +app.command()(git_sim.commands.clone) |
| 190 | +app.command()(git_sim.commands.commit) |
| 191 | +app.command()(git_sim.commands.fetch) |
| 192 | +app.command()(git_sim.commands.log) |
| 193 | +app.command()(git_sim.commands.merge) |
| 194 | +app.command()(git_sim.commands.pull) |
| 195 | +app.command()(git_sim.commands.push) |
| 196 | +app.command()(git_sim.commands.rebase) |
| 197 | +app.command()(git_sim.commands.reset) |
| 198 | +app.command()(git_sim.commands.restore) |
| 199 | +app.command()(git_sim.commands.revert) |
| 200 | +app.command()(git_sim.commands.stash) |
| 201 | +app.command()(git_sim.commands.status) |
| 202 | +app.command()(git_sim.commands.switch) |
| 203 | +app.command()(git_sim.commands.tag) |
221 | 204 |
|
222 | 205 |
|
223 | 206 | if __name__ == "__main__": |
|
0 commit comments