Skip to content

Latest commit

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

emberlamp

Master CLI to control all Emberlamp repositories.

Dynamic Repository Management

The CLI fetches the list of repositories dynamically from emberlamp/configrepos.json. This means you don't need to update the CLI when adding new repos - just update the JSON file!

To add new repos:

  1. Update repos.json in the config repo
  2. All emberlamp CLI commands will automatically use the updated list

Installation

gh extension install emberlamp/cli

Or add to PATH:

cp emberlamp /usr/local/bin/

Usage

# List all repositories
emberlamp list
# Clone all repos
emberlamp clone ~/emberlamp
# Pull all repos
emberlamp pull
# Push all repos
emberlamp push
# Show status
emberlamp status
# Create new repo
emberlamp create new-repo "Description"# Execute command in all repos (tested with real example)
emberlamp exec"echo 'test' > test.txt"
emberlamp exec"git add -A && git commit -m 'chore: add test file' && git push"

Examples - Tested Workflow

# 1. Clone all repos
emberlamp clone ~/emberlamp
# 2. Change to the cloned directorycd~/emberlamp
# 3. Add a file to all repos
emberlamp exec"echo 'test' > test.txt"# 4. Commit and push to all repos (successfully pushed to all 11 repos!)
emberlamp exec"git add -A && git commit -m 'chore: add test file' && git push"

Commands

CommandDescription
listList all Emberlamp repos
clone [dir]Clone all repos to directory
pullPull all cloned repos
pushPush all cloned repos
statusShow status of all repos
create <name> [desc]Create new repository
exec <command>Execute command in all repos

Repositories Managed

Managed dynamically from repos.json in emberlamp/config.

Future: Automation with GitHub Bot

A GitHub bot can be created to:

  • Automatically sync repos list from config to all extensions
  • Trigger updates when repos.json changes
  • Run scheduled tasks across all repos

To implement, you would need:

  1. Create a GitHub App or use existing token
  2. Add repository dispatch webhook
  3. Create a workflow that listens for config changes

Would you like to create a bot for this automation?

About

Master CLI to control all emberlamp repos

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages