mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Compare commits
No commits in common. "2fa75b084bc4710ce6dc9e002302396cf93195c3" and "b581f85d44ac89baf52bc4aa5da535475dc6d524" have entirely different histories.
2fa75b084b
...
b581f85d44
1 changed files with 1 additions and 18 deletions
|
|
@ -10,7 +10,6 @@ _hr_usage() {
|
|||
echo " call Call a Cloud Run service route"
|
||||
echo " cf Call a Cloud Function"
|
||||
echo " init py Initialize a python devenv environment (git-ignored)"
|
||||
echo " init go Initialize a go devenv environment (git-ignored)"
|
||||
echo " freeze Freeze dependencies to requirements.txt"
|
||||
}
|
||||
|
||||
|
|
@ -53,7 +52,7 @@ _hr_add_ignores() {
|
|||
_hr_py_files() {
|
||||
cat <<EOF >devenv.nix
|
||||
{pkgs, ...}: {
|
||||
packages = [ pkgs.google-cloud-sdk pkgs.libpq ];
|
||||
packages = [ pkgs.google-cloud-sdk ];
|
||||
|
||||
languages.python = {
|
||||
enable = true;
|
||||
|
|
@ -138,16 +137,6 @@ in {
|
|||
EOF
|
||||
}
|
||||
|
||||
_hr_go_files() {
|
||||
cat <<EOF >devenv.nix
|
||||
{pkgs, ...}: {
|
||||
languages.go = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
EOF
|
||||
}
|
||||
|
||||
_hr_init_base() {
|
||||
local name="$1"
|
||||
local func="$2"
|
||||
|
|
@ -197,10 +186,6 @@ _hr_init_cpp() {
|
|||
cp compile_commands.json ..
|
||||
}
|
||||
|
||||
_hr_init_go() {
|
||||
_hr_init_base "Go" _hr_go_files
|
||||
}
|
||||
|
||||
_hr_freeze() {
|
||||
local extra_index_url="https://europe-west1-python.pkg.dev/mk2-prod/python-packages/simple/"
|
||||
|
||||
|
|
@ -391,8 +376,6 @@ hr() {
|
|||
_hr_init_py
|
||||
elif [ "$1" = "init" ] && [ "$2" = "rs" ]; then
|
||||
_hr_init_rs
|
||||
elif [ "$1" = "init" ] && [ "$2" = "go" ]; then
|
||||
_hr_init_go
|
||||
elif [ "$1" = "init" ] && [ "$2" = "cpp" ]; then
|
||||
_hr_init_cpp
|
||||
elif [ "$1" = "freeze" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue