Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
2 | # -*- coding: utf-8 -*- |
||
3 | from pathlib import Path |
||
4 | import sys |
||
5 | |||
6 | |||
7 | def create_plugin_template(): |
||
8 | proj_name = sys.argv[2] |
||
9 | proj_path = Path(proj_name) |
||
10 | for directory in (f"autoload/{proj_name}", "doc", "plugin", "syntax", "tests"): |
||
11 | (proj_path / directory).mkdir(parents=True) |
||
12 | |||
13 | (proj_path / "doc" / f"{proj_name}.txt").touch() |
||
14 | |||
15 | for directory in ("plugin", "syntax"): |
||
16 | (proj_path / directory / f"{proj_name}.vim").touch() |
||
17 |