github.com/kcmerrill/alfred@v0.0.0-20180727171036-06445dcb5e3d/remote-modules/project.yml (about)

     1  github:
     2      summary: Install a github repo
     3      usage: alfred /project setup user/repo
     4      git: clone {{ index .Args 0 }}
     5      tasks: setup
     6      exit: 1
     7  
     8  github-revision:
     9      summary: Install a github repo with a specific revision
    10      usage: alfred /project setup user/repo commitid
    11      command: |
    12          alfred /git clone {{ index .Args 0 }}
    13      tasks: setup-revision
    14  
    15  setup:
    16      summary: Run alfred install
    17      command: |
    18          cd $(ls -td -- */ | head -n 1) && alfred install
    19  
    20  setup-revision:
    21      summary: Checkout a specific revision
    22      command: |
    23          cd $(ls -td -- */ | head -n 1)
    24          alfred /git checkout {{ index .Args 1 }}
    25          alfred setup
    26          alfred up
    27          alfred test
    28      defaults:
    29          - master