cursor-boilerplate 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cursor_boilerplate/__init__.py +1 -0
- cursor_boilerplate/cli.py +37 -0
- cursor_boilerplate-0.1.0.dist-info/METADATA +54 -0
- cursor_boilerplate-0.1.0.dist-info/RECORD +7 -0
- cursor_boilerplate-0.1.0.dist-info/WHEEL +5 -0
- cursor_boilerplate-0.1.0.dist-info/entry_points.txt +2 -0
- cursor_boilerplate-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.1.0'
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import os
|
2
|
+
import shutil
|
3
|
+
import click
|
4
|
+
|
5
|
+
@click.command()
|
6
|
+
@click.argument('project_name')
|
7
|
+
@click.option('--path', '-p', default='.', help='프로젝트를 생성할 경로')
|
8
|
+
def main(project_name, path):
|
9
|
+
"""프로젝트를 생성하는 CLI 도구입니다."""
|
10
|
+
try:
|
11
|
+
# 프로젝트 경로 생성
|
12
|
+
project_path = os.path.join(path, project_name)
|
13
|
+
os.makedirs(project_path, exist_ok=True)
|
14
|
+
|
15
|
+
# .cursor 디렉토리 생성
|
16
|
+
cursor_dir = os.path.join(project_path, '.cursor')
|
17
|
+
os.makedirs(cursor_dir, exist_ok=True)
|
18
|
+
|
19
|
+
# 현재 디렉토리의 .cursor 파일들을 복사
|
20
|
+
current_cursor_dir = os.path.join(os.path.dirname(os.path.dirname(__file__)), '.cursor')
|
21
|
+
for item in os.listdir(current_cursor_dir):
|
22
|
+
src = os.path.join(current_cursor_dir, item)
|
23
|
+
dst = os.path.join(cursor_dir, item)
|
24
|
+
if os.path.isfile(src):
|
25
|
+
shutil.copy2(src, dst)
|
26
|
+
elif os.path.isdir(src):
|
27
|
+
shutil.copytree(src, dst)
|
28
|
+
|
29
|
+
click.echo(f"프로젝트 '{project_name}'이 성공적으로 생성되었습니다.")
|
30
|
+
click.echo(f"경로: {os.path.abspath(project_path)}")
|
31
|
+
|
32
|
+
except Exception as e:
|
33
|
+
click.echo(f"오류가 발생했습니다: {str(e)}", err=True)
|
34
|
+
raise click.Abort()
|
35
|
+
|
36
|
+
if __name__ == '__main__':
|
37
|
+
main()
|
@@ -0,0 +1,54 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: cursor-boilerplate
|
3
|
+
Version: 0.1.0
|
4
|
+
Summary: A boilerplate project for Cursor IDE
|
5
|
+
Home-page: https://github.com/yourusername/cursor-boilerplate
|
6
|
+
Author: Your Name
|
7
|
+
Author-email: your.email@example.com
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Requires-Python: >=3.6
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
Requires-Dist: click
|
14
|
+
Dynamic: author
|
15
|
+
Dynamic: author-email
|
16
|
+
Dynamic: classifier
|
17
|
+
Dynamic: description
|
18
|
+
Dynamic: description-content-type
|
19
|
+
Dynamic: home-page
|
20
|
+
Dynamic: requires-dist
|
21
|
+
Dynamic: requires-python
|
22
|
+
Dynamic: summary
|
23
|
+
|
24
|
+
# Cursor Boilerplate
|
25
|
+
|
26
|
+
Cursor IDE를 위한 보일러플레이트 프로젝트 생성기입니다.
|
27
|
+
|
28
|
+
## 설치 방법
|
29
|
+
|
30
|
+
```bash
|
31
|
+
pip install cursor-boilerplate
|
32
|
+
```
|
33
|
+
|
34
|
+
## 사용 방법
|
35
|
+
|
36
|
+
```bash
|
37
|
+
uvx my-project-name
|
38
|
+
```
|
39
|
+
|
40
|
+
또는 특정 경로에 프로젝트를 생성하려면:
|
41
|
+
|
42
|
+
```bash
|
43
|
+
uvx my-project-name --path /path/to/directory
|
44
|
+
```
|
45
|
+
|
46
|
+
## 기능
|
47
|
+
|
48
|
+
- 새로운 프로젝트 디렉토리 생성
|
49
|
+
- .cursor 디렉토리 및 파일 자동 복사
|
50
|
+
- 사용자 지정 경로 지원
|
51
|
+
|
52
|
+
## 라이센스
|
53
|
+
|
54
|
+
MIT
|
@@ -0,0 +1,7 @@
|
|
1
|
+
cursor_boilerplate/__init__.py,sha256=fNOyX5PWOth_NRK0jMtT8zTeiViIztHHz0FylQfqRzQ,22
|
2
|
+
cursor_boilerplate/cli.py,sha256=RRpvl-xF94BJSAI5eayke7gHRWJoT_S92zjkiKf8pNE,1386
|
3
|
+
cursor_boilerplate-0.1.0.dist-info/METADATA,sha256=jIwO0W_oTX0WlAfYUc7Vj44nquxUA557c0WPsro5Sqg,1142
|
4
|
+
cursor_boilerplate-0.1.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
5
|
+
cursor_boilerplate-0.1.0.dist-info/entry_points.txt,sha256=4SRxSUksMtHvTDEBBOPzo95UkioOuX1CqulL3Re8sfg,52
|
6
|
+
cursor_boilerplate-0.1.0.dist-info/top_level.txt,sha256=y8dzxEXg0CC4ruHYL8vncncXIsOpqUqGV-8kqErgMHU,19
|
7
|
+
cursor_boilerplate-0.1.0.dist-info/RECORD,,
|
@@ -0,0 +1 @@
|
|
1
|
+
cursor_boilerplate
|