Codebase Management¶
This section covers commands for managing your codebase in the vector store.
add¶
Add files to the vector store database. Supports .gitignore patterns and recursive directory scanning.
jiragen add PATH [PATH...]
Arguments:
PATH : One or more files or directories to add to the database
Use "." to add all files in current directory recursively
Use "*" to add all files in current directory only
Use specific paths for individual files or directories
Features¶
- Gitignore Support: Automatically respects .gitignore patterns
- Progress Tracking: Shows progress bar and statistics
- Tree View: Visual display of added files
- Directory Scanning: Recursive scanning of directories
- Pattern Matching: Supports glob patterns
Examples¶
# Add all files recursively (respects .gitignore)
jiragen add .
# Add specific files
jiragen add src/main.py tests/test_api.py
# Add all files in a specific directory
jiragen add src/
# Add all Python files in current directory
jiragen add *.py
Example output:
๐ Added Files
โโโ src/main.py
โโโ src/utils/helper.py
โโโ tests/test_api.py
Successfully added 3 files (52.7 files/second)
rm (remove)¶
Remove files from the vector store database.
jiragen rm PATH [PATH...]
Arguments:
PATH : One or more files or directories to remove
Supports the same patterns as the add command
Examples¶
# Remove specific files
jiragen rm src/deprecated.py
# Remove all files in a directory
jiragen rm old_code/
# Remove files matching a pattern
jiragen rm *.tmp
Example output:
๐๏ธ Removed Files
โโโ src/deprecated.py
โโโ old_code/helper.py
Successfully removed 2 files
fetch¶
Fetch JIRA data and store it in a separate vector store.
jiragen fetch [OPTIONS]
Options:
--types TYPE [TYPE...] : Types of data to fetch (default: tickets, epics)
Available types: epics, tickets, components
Use 'all' to fetch everything
Examples¶
# Fetch all JIRA data types
jiragen fetch --types all
# Fetch specific types
jiragen fetch --types epics tickets
Example output:
JIRA Fetch Statistics
โโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Type โ Items Fetched โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Epics โ 12 โ
โ Tickets โ 156 โ
โ Components โ 8 โ
โ Total โ 176 โ
โโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โจ Fetch completed successfully!
โฑ๏ธ Time taken: 5.23 seconds
๐ Data stored in: ~/.local/share/jiragen/jira_data
The fetched data is stored in the system's data directory following the XDG Base Directory specification:
Unix-like Systems (Linux, macOS):
- ~/.local/share/jiragen/jira_data/epics/
- ~/.local/share/jiragen/jira_data/tickets/
- ~/.local/share/jiragen/jira_data/components/
Windows:
- %LOCALAPPDATA%\jiragen\jira_data\epics\
- %LOCALAPPDATA%\jiragen\jira_data\tickets\
- %LOCALAPPDATA%\jiragen\jira_data\components\
Each item is stored in both JSON and Markdown formats for easy viewing and processing.