Skip to content

benschw/composer-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

composer-sync

cli tool to sync php composer packages from the vcs repo registered in packagist to a private stash repo

update cfg.yaml (and optionally copy it to its default location: ~/.composer-sync.yaml)

Download

Usage

composer-sync [OPTIONS]... VENDOR/PACKAGE

  -u       sync all packages, not just new one
  -r       recursively load transitive dependencies
  -dryrun  show add/sync/skip but don't do anything
  -config  specify a config other that ~/.composer-sync.yaml

Examples

$ composer-sync login
Authenticate With Stash:
 Login: foo
 Password: 
Auth Updated in '/home/ben/.composer-sync.yaml'

$ composer-sync fliglio/web
add:  fliglio_web 

$ composer-sync -r fliglio/web
skip: fliglio_web 
add:  doctrine_cache 
add:  symfony_validator 
add:  symfony_translation 
add:  symfony_polyfill-mbstring 
add:  fliglio_http 
add:  doctrine_annotations 
add:  doctrine_lexer

$ composer-sync -r fliglio/web
skip: fliglio_web 
skip: doctrine_cache 
skip: symfony_validator 
skip: symfony_translation 
skip: symfony_polyfill-mbstring 
skip: fliglio_http 
skip: doctrine_annotations 
skip: doctrine_lexer

$ composer-sync -u -r fliglio/web
sync: fliglio_web 
sync: doctrine_cache 
sync: symfony_validator 
sync: symfony_translation 
sync: symfony_polyfill-mbstring 
sync: fliglio_http 
sync: doctrine_annotations 
sync: doctrine_lexer

Testing

  • Install Stash
    • create user foo with password asdf
    • configure an ssh key for foo
    • create project with slug UT and grant foo write access
  • Install satis-go
    • install foo user's ssh key with the user running satis-go (connect to stash to accept key)
  • Run tests serially to accomodate single stash instance
go test -p=1 ./...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages