Skip to content

celsodias12/execute-command-in-dir-or-paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto git pull

Use for specific directories:

const projectsPaths = [
  {
    // OR C:/Users/user/projects/project-01
    dir: '/home/user/projects/project-01',
    command: 'git pull'
  },
  {
    dir: '/home/user/projects/project-02',
    command: 'git pull'
    postCommand: 'mvn clean install',
  },
]

specifyPaths(projectsPaths)

For projects inside a folder:

allProjectsInFolder({
  dir: '/home/user/projects',
  command: 'git pull',
  executeCommandInFolderName: 'project-01',
  // postCommand will only execute on project project-01 inside /home/user/projects
  postCommand: 'echo run only in project-01',
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published