[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/bin/ -> gittool.php (summary)

(no description)

File Size: 346 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 inc/init.php

Defines 1 class

GitToolCLI:: (10 methods):
  setup()
  main()
  cmdClone()
  cmdInstall()
  cmdGit()
  cmdRepos()
  downloadExtension()
  cloneExtension()
  findRepos()
  getSourceRepo()


Class: GitToolCLI  - X-Ref

Easily manage DokuWiki git repositories

setup(Options $options)   X-Ref
Register options and arguments on the given $options object

return: void
param: Options $options

main(Options $options)   X-Ref
Your main program

Arguments and options have been parsed when this is run

return: void
param: Options $options

cmdClone($extensions)   X-Ref
Tries to install the given extensions using git clone

param: array $extensions

cmdInstall($extensions)   X-Ref
Tries to install the given extensions using git clone with fallback to install

param: array $extensions

cmdGit($cmd, $arg)   X-Ref
Executes the given git command in every repository

param: $cmd
param: $arg

cmdRepos()   X-Ref
Simply lists the repositories


downloadExtension($ext)   X-Ref
Install extension from the given download URL

return: bool|null
param: string $ext

cloneExtension($ext, $repo)   X-Ref
Clones the extension from the given repository

return: bool
param: string $ext
param: string $repo

findRepos()   X-Ref
Returns all git repositories in this DokuWiki install

Looks in root, template and plugin directories only.

return: array

getSourceRepo($extension)   X-Ref
Returns the repository for the given extension

return: false|string
param: $extension