repo
Description¶
Repository management commands.
Available Commands: scaffold: Create and initialize a new repository with template files update_deps: Update and lock repository dependencies
Usage¶
Additionally, you can view the parameters for the command using:
Scaffold¶
Create a new repository and scaffold necessary files.
Required Parameters: name: Name of the repository to create
Optional Parameters: type_of_repo: Type of repository to scaffold (autonomy, python). Default: autonomy force: Overwrite existing repository if it exists. Default: False auto_approve: Skip confirmation prompts. Default: False install: Install dependencies after scaffolding. Default: True initial_commit: Create initial git commit. Default: True
Usage: Create basic autonomy repo: adev repo scaffold my_repo
Create Python repo:
adev repo scaffold my_repo -t python
Force overwrite existing repo:
adev repo scaffold my_repo -f
Skip dependency installation:
adev repo scaffold my_repo --no-install
Notes¶
- Creates a new git repository in the specified directory
- For autonomy repos:
- Installs host dependencies via install.sh
- Initializes autonomy packages
- For Python repos:
- Creates src directory with __init__.py
- Adds sample main.py and cli.py files
Update Deps¶
Update and lock repository dependencies.
Optional Parameters: lock: Lock dependencies after updating. Default: False
Usage: Update dependencies: adev repo update-deps
Update and lock dependencies:
adev repo update-deps --lock
Notes¶
- Updates dependencies in packages.json
- Optionally locks dependency versions
- Checks for changes in dependency files
- Prompts to commit changes if detected
- Exits with error if uncommitted changes exist