Skip to content

Commit

Permalink
update from template
Browse files Browse the repository at this point in the history
  • Loading branch information
justagist committed Aug 3, 2024
2 parents 91eac48 + 6be67e0 commit c9e0fcc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
25 changes: 20 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@
"label": "update from template repo",
"detail": "Pull any changes from the template repo into this repo by adding it as a remote. The remote is removed at the end of the command. You may need to resolve merge conflicts",
"type": "shell",
"command": "scripts/update_from_template.sh"
"command": "setup_scripts/update_from_template.sh"
},
{
"label": "rename template project",
"detail": "Replaces all instances of the template project name with a new name. ",
"type": "shell",
"command": "scripts/rename_project.sh ${input:new_project_name}"
"command": "setup_scripts/rename_project.sh '${input:new_project_name}' '${input:new_author_name}' '${input:new_author_email}' '${input:github_username}'"
},
{
"label": "flit install",
Expand All @@ -118,7 +118,7 @@
"label": "setup: host",
"detail": "Sets up docker, nvidia docker git-lfs and rocker which are used to clone and setup docker containers",
"type": "shell",
"command": "./scripts/setup_host.sh",
"command": "./setup_scripts/setup_host.sh",
"presentation": {
"reveal": "always",
"panel": "new"
Expand All @@ -128,13 +128,13 @@
"label": "launch container",
"detail": "Uses rocker to launch a container and spawns a new vscode window attached to the container",
"type": "shell",
"command": "scripts/launch_vscode.sh"
"command": "setup_scripts/launch_vscode.sh"
},
{
"label": "launch container no cache",
"detail": "Uses rocker to launch a container and spawns a new vscode window attached to the container",
"type": "shell",
"command": "scripts/launch_vscode.sh --nocache"
"command": "setup_scripts/launch_vscode.sh --nocache"
},
{
"label": "Install All Recommended Extensions",
Expand Down Expand Up @@ -169,6 +169,21 @@
"id": "new_project_name",
"description": "The new name of the project",
"default": "python_template"
},
{
"type": "promptString",
"id": "new_author_name",
"description": "Name of author/maintainer"
},
{
"type": "promptString",
"id": "new_author_email",
"description": "Email id of author/maintainer"
},
{
"type": "promptString",
"id": "github_username",
"description": "Github username of author/maintainer"
}
]
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ git checkout -B feature/update_from_template; git pull
git merge template/main --allow-unrelated-histories -m 'feat: pull changes from remote template'
git checkout --ours pixi.lock; git add pixi.lock
git remote remove template
git push --set-upstream origin feature/update_from_template
git push --set-upstream origin feature/update_from_template
git checkout main

0 comments on commit c9e0fcc

Please sign in to comment.