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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:TypeScript 100.0%