mirror of
https://github.com/agresdominik/cheat_sheet.git
synced 2026-04-21 18:05:51 +00:00
commands
This commit is contained in:
+17
-13
@@ -27,26 +27,18 @@
|
|||||||
],
|
],
|
||||||
"python": [
|
"python": [
|
||||||
{
|
{
|
||||||
"command": "python3 -m venv .venv; source .venv/bin/activate",
|
"command": "python3 -m venv .venv && source .venv/bin/activate",
|
||||||
"desc": "Initialise a (simple) .venv and activate it"
|
"desc": "Initialise a (simple) .venv and activate it"
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "command",
|
|
||||||
"desc": "Initialise a poetry project"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "command",
|
|
||||||
"desc": "..."
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"go": [
|
"go": [
|
||||||
{
|
{
|
||||||
"command": "go mod init github.com/username/projectname",
|
"command": "go mod init github.com/username/projectname",
|
||||||
"desc": "Initialise a go project"
|
"desc": "Initialise a go project and create a mod file"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "go get github.com/some/package@latest",
|
"command": "go get github.com/some/package@latest",
|
||||||
"desc": "Add dependencies (cringe)"
|
"desc": "Add dependencies"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "go mod tidy",
|
"command": "go mod tidy",
|
||||||
@@ -57,11 +49,11 @@
|
|||||||
"desc": "Verify Integrity"
|
"desc": "Verify Integrity"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "go run src/main.go",
|
"command": "go run <target_file_or_folder>",
|
||||||
"desc": "Run a main.go file"
|
"desc": "Run a main.go file"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "go build -o bin/myprogram main.go",
|
"command": "go build -o bin/<bin_name> <target_file_or_folder>",
|
||||||
"desc": "Build an executable"
|
"desc": "Build an executable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -73,6 +65,18 @@
|
|||||||
{
|
{
|
||||||
"command": "git checkout -b branch_name",
|
"command": "git checkout -b branch_name",
|
||||||
"desc": "Create and checkout a new branch"
|
"desc": "Create and checkout a new branch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "git rebase <target_branch>",
|
||||||
|
"desc": "Rebase commits from source branch to target branch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "git stash",
|
||||||
|
"desc": "Stash changes without commiting"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "git reflog",
|
||||||
|
"desc": "Show history of all changes"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user