Commit 5d7384ae authored by Adrian DC's avatar Adrian DC
Browse files

docs: regenerate preview documentations and fix quotes

parent 3ee37aca
Loading
Loading
Loading
Loading
Loading
+4 −0
Changes for CHANGELOG.md: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -11,6 +11,10 @@
* resolve [#12](https://gitlab.com/AdrianDC/gitlabci-local/issues/12): apply VSCode, MarkdownLint and YAPF settings
* implement [#9](https://gitlab.com/AdrianDC/gitlabci-local/issues/9): unify dependencies under requirements.txt

### Docs

* regenerate preview documentations and fix quotes

### Feat

* implement [#11](https://gitlab.com/AdrianDC/gitlabci-local/issues/11): add Changelog link on PyPI releases
−4.34 KiB (851 KiB)
Loading image diff...
+15 −15
Changes for docs/preview.sh: 15 added lines, 15 removed lines.
Original line number Diff line number Diff line
@@ -6,13 +6,13 @@ for i in $(seq 1 30); do
done

# Delay
sleep 5
sleep 3

# Previewer
function previewer()
{
  # Variables
  command=${1}
  command=("${@}")

  # Prompt
  echo ''
@@ -20,15 +20,15 @@ function previewer()
  sleep 1

  # Input
  if [ ! -z "${command}" ]; then
    echo -n "${command} "
  if [ ! -z "${command[*]}" ]; then
    echo -n "${command[*]} "
    sleep 1
  fi

  # Execution
  if [ ! -z "${command}" ]; then
  if [ ! -z "${command[*]}" ]; then
    echo ''
    ${command}
    "${command[@]//\"/}"
  else
    sleep 1
    echo ''
@@ -36,25 +36,25 @@ function previewer()
}

# Help
previewer 'gitlabci-local -h'
previewer gitlabci-local -h

# Jobs selector
previewer 'cd ./examples/'
previewer 'gitlabci-local'
previewer cd ./examples/
previewer gitlabci-local

# Job selector
previewer 'gitlabci-local -c ./.gitlab-ci.yml -l'
previewer gitlabci-local -c ./.gitlab-ci.yml -l

# Job runner
previewer 'gitlabci-local -b -a "Job 1 - 3"'
previewer gitlabci-local -b -a \"Job\ 1\ -\ 3\"

# Pipeline runner
previewer 'cd ../tests/failures/'
previewer 'gitlabci-local -b -a -p'
previewer cd ../tests/failures/
previewer gitlabci-local -b -a -p

# Stages runner
previewer 'cd ../stages/'
previewer 'gitlabci-local -p one two'
previewer cd ../stages/
previewer gitlabci-local -p one two

# Delay
previewer ''