shell improvements
This commit is contained in:
@@ -10,6 +10,10 @@ pkgs.mkShell {
|
||||
|
||||
shellHook = ''
|
||||
echo "Welcome to the Nix shell for AppDaemon development"
|
||||
cd /usr/src/app
|
||||
echo "URL: $(git config --get remote.origin.url)"
|
||||
echo "Branch: $(git rev-parse --abbrev-ref HEAD)"
|
||||
echo "Hash: $(git rev-parse --short HEAD)"
|
||||
|
||||
alias build="uv run python -m build"
|
||||
alias dbuild="docker build -t acockburn/appdaemon:local-dev /usr/src/app"
|
||||
@@ -17,8 +21,8 @@ pkgs.mkShell {
|
||||
alias clean="cd /usr/src/app && rm -rf ./build ./dist"
|
||||
alias ad="python -m appdaemon"
|
||||
|
||||
cd /usr/src/app
|
||||
uv sync --all-extras --upgrade --inexact
|
||||
source .venv/bin/activate
|
||||
echo -e "Built and activated virtual environment\n"
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user