-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharete
More file actions
executable file
·105 lines (95 loc) · 2.7 KB
/
arete
File metadata and controls
executable file
·105 lines (95 loc) · 2.7 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
# Areté CLI
# Simple entry point for workspace commands
#
# Usage:
# ./arete setup Check dependencies
# ./arete install Install missing dependencies
# ./arete init Initialize workspace
# ./arete help Show all commands
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
BOLD='\033[1m'
NC='\033[0m'
print_logo() {
echo ""
echo -e "${BOLD} Areté${NC} - Product Management Workspace"
echo ""
}
print_help() {
print_logo
echo "Usage: ./arete <command>"
echo ""
echo -e "${BOLD}Setup Commands${NC}"
echo " setup Check status of all dependencies"
echo " install Install missing dependencies"
echo " init Initialize workspace (directories, credentials)"
echo " setup all Full setup (install + init)"
echo ""
echo -e "${BOLD}Meeting Commands${NC}"
echo " meeting add --file <path> Add meeting from JSON file"
echo ""
echo -e "${BOLD}Integration Commands${NC}"
echo " fathom list [--days N] List recent Fathom recordings"
echo " fathom fetch [--days N] Fetch and save recordings"
echo ""
echo -e "${BOLD}Other${NC}"
echo " help Show this help message"
echo " version Show version"
echo ""
echo "Examples:"
echo " ./arete setup # Check what's installed"
echo " ./arete install # Install missing tools"
echo " ./arete fathom list # List recent meetings"
echo ""
}
case "${1:-help}" in
# Setup commands
setup)
shift
"$SCRIPT_DIR/scripts/setup.sh" "${@:-check}"
;;
install)
"$SCRIPT_DIR/scripts/setup.sh" install
;;
init)
"$SCRIPT_DIR/scripts/setup.sh" init
;;
# Meeting commands
meeting)
shift
node "$SCRIPT_DIR/bin/arete.js" meeting "$@"
;;
# Fathom integration
fathom)
shift
if [ -z "$1" ]; then
echo -e "${YELLOW}Usage: ./arete fathom <command>${NC}"
echo ""
echo "Commands:"
echo " list [--days N] List recent recordings"
echo " fetch [--days N] Fetch and save recordings"
echo " get <id> Get specific recording"
exit 1
fi
node "$SCRIPT_DIR/bin/arete.js" fathom "$@"
;;
# Help & info
help|-h|--help)
print_help
;;
version|-v|--version)
echo "Areté v0.1.0"
;;
# Unknown command
*)
echo -e "${RED}Unknown command: $1${NC}"
echo ""
print_help
exit 1
;;
esac