forked from ansible/tower-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv-dev.sh
More file actions
executable file
·26 lines (22 loc) · 871 Bytes
/
env-dev.sh
File metadata and controls
executable file
·26 lines (22 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Tower CLI Development Environment Setup
# This script sets up your shell environment to use tower-cli without installation
# Get the directory where this script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Add the project directory to PYTHONPATH
export PYTHONPATH="${SCRIPT_DIR}:${PYTHONPATH}"
# Create aliases for tower-cli and awx-cli
alias tower-cli="python -c 'from tower_cli.cli.run import cli; cli()'"
alias awx-cli="python -c 'from tower_cli.cli.run import cli; cli()'"
echo "✅ Tower CLI Development Environment activated!"
echo ""
echo "PYTHONPATH: ${PYTHONPATH}"
echo ""
echo "Available commands:"
echo " - tower-cli --version"
echo " - tower-cli --help"
echo " - tower-cli instance list"
echo ""
echo "To deactivate, close this terminal or run:"
echo " unset PYTHONPATH"
echo " unalias tower-cli awx-cli"