-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.sh
More file actions
66 lines (53 loc) · 1.36 KB
/
demo.sh
File metadata and controls
66 lines (53 loc) · 1.36 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
# Demo script for EVM (Environment Variable Manager)
# This script demonstrates how to use EVM to manage environment variables
echo "=== EVM Demo Script ==="
echo ""
# Check if EVM is installed
if ! command -v evm &> /dev/null
then
echo "EVM is not installed. Installing..."
pip install -e .
fi
echo "1. Setting up development environment..."
evm set APP_NAME "My Application"
evm set APP_VERSION "1.0.0"
evm set ENVIRONMENT "development"
evm set DEBUG "true"
evm set DATABASE_URL "postgresql://user:password@localhost:5432/mydb"
echo ""
echo "2. Listing all environment variables:"
evm list
echo ""
echo "3. Getting a specific variable:"
echo "APP_NAME: $(evm get APP_NAME)"
echo ""
echo "4. Searching for variables containing 'APP':"
evm search APP
echo ""
echo "5. Exporting to .env format:"
evm export --format env -o demo.env
echo "Exported to demo.env"
echo ""
echo "6. Creating a backup:"
evm backup --file demo-backup.json
echo ""
echo "7. Renaming a variable:"
evm rename ENVIRONMENT ENV
echo ""
echo "8. Copying a variable:"
evm copy APP_NAME APP
echo ""
echo "9. Final list of variables:"
evm list
echo ""
echo "10. Cleaning up demo variables:"
evm delete APP
evm delete ENV
evm clear
echo ""
echo "=== Demo Complete ==="
echo ""
echo "Check the generated files:"
echo " - demo.env (exported .env file)"
echo " - demo-backup.json (backup file)"