Skip to content

Commit de481b7

Browse files
Vbitzclaude
andcommitted
Migrate gitClone and pipInstall groups to YAML-based system
- Convert gitClone.tsx to gitClone.yaml with DocumentDuplicate icon and orange color - Convert pipInstall.tsx to pipInstall.yaml with CodeBracket icon and blue color - Update index.ts to import new YAML files and register groups - Remove obsolete TypeScript group editor files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 12d049c commit de481b7

File tree

4 files changed

+201
-224
lines changed

4 files changed

+201
-224
lines changed

components/directives/groups/gitClone.tsx

Lines changed: 0 additions & 96 deletions
This file was deleted.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
metadata:
2+
key: gitClone
3+
label: Git Clone
4+
description: Clone a git repository with optional revision/tag support
5+
icon: DocumentDuplicate
6+
color: orange
7+
helpContent: |
8+
# Git Clone Group
9+
10+
This group clones a git repository with support for specific revisions, recursive cloning, and cleanup options.
11+
12+
## Options
13+
14+
- **Repository URL**: The URL of the git repository to clone (HTTPS or SSH)
15+
- **Destination Path**: Where the repository will be cloned in the container
16+
- **Revision**: Specific branch, tag, or commit hash to checkout
17+
- **Recursive**: Include git submodules when cloning
18+
- **Cleanup Git**: Remove .git directory after cloning to reduce image size
19+
20+
## Usage
21+
22+
The Git Clone group will:
23+
1. Clone the specified repository to the destination path
24+
2. Optionally checkout a specific revision
25+
3. Optionally clone submodules recursively
26+
4. Optionally remove the .git directory to reduce image size
27+
keywords:
28+
- git
29+
- clone
30+
- repository
31+
- version
32+
- tag
33+
- branch
34+
- source
35+
36+
arguments:
37+
- name: repository_url
38+
type: text
39+
required: true
40+
defaultValue: "https://github.com/user/repo.git"
41+
description: URL of the git repository to clone (HTTPS or SSH).
42+
43+
- name: destination_path
44+
type: text
45+
required: false
46+
defaultValue: "/opt/repository"
47+
description: Path where the repository will be cloned.
48+
49+
- name: revision
50+
type: text
51+
required: false
52+
defaultValue: ""
53+
description: Specific branch, tag, or commit hash to checkout (optional).
54+
55+
- name: recursive
56+
type: boolean
57+
required: false
58+
defaultValue: false
59+
description: Clone recursively to include git submodules.
60+
61+
- name: cleanup_git
62+
type: boolean
63+
required: false
64+
defaultValue: false
65+
description: Remove the .git directory after cloning to reduce image size.
66+
67+
directives:
68+
- variables:
69+
cloneCommand: git clone
70+
commands: []
71+
72+
- variables:
73+
cloneCommand: "git clone --recursive"
74+
condition: local.recursive
75+
76+
- variables:
77+
fullCloneCommand: '{{ local.cloneCommand }} "{{ local.repository_url }}" "{{ local.destination_path }}"'
78+
79+
- run: "{{ local.fullCloneCommand }}"
80+
81+
- run: 'cd "{{ local.destination_path }}" && git checkout "{{ local.revision }}"'
82+
condition: 'local.revision != "" && local.revision != null'
83+
84+
- run: 'rm -rf "{{ local.destination_path }}/.git"'
85+
condition: local.cleanup_git

components/directives/groups/pipInstall.tsx

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)