codefresh 0.88.2 → 0.88.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/interface/cli/completion/tree.json +1 -1
- package/package.json +17 -16
- package/.dockerignore +0 -15
- package/.eslintrc.js +0 -20
- package/.gitattributes +0 -29
- package/.github/CODEOWNERS +0 -1
- package/.github/pull_request_template.md +0 -5
- package/.github/release-drafter.yaml +0 -8
- package/.github/workflows/create-release.yaml +0 -36
- package/.github/workflows/draft-release.yaml +0 -33
- package/.nvmrc +0 -1
- package/Dockerfile +0 -44
- package/Dockerfile-debian +0 -49
- package/Dockerfile-debian-rootless +0 -58
- package/Dockerfile-rootless +0 -55
- package/__mocks__/codefresh.yml +0 -40
- package/__mocks__/requestretry.js +0 -35
- package/cli.gif +0 -0
- package/codefresh-v0.88.2-alpine-arm64.tar.gz +0 -0
- package/codefresh-v0.88.2-alpine-x64.tar.gz +0 -0
- package/codefresh-v0.88.2-linux-arm64.tar.gz +0 -0
- package/codefresh-v0.88.2-linux-x64.tar.gz +0 -0
- package/codefresh-v0.88.2-macos-x64.tar.gz +0 -0
- package/docs/archetypes/default.md +0 -6
- package/docs/config.toml +0 -44
- package/docs/content/_header.md +0 -6
- package/docs/content/_index.md +0 -19
- package/docs/content/contexts/spec/_index.md +0 -28
- package/docs/content/contexts/spec/config.md +0 -30
- package/docs/content/contexts/spec/helm-repository.md +0 -16
- package/docs/content/contexts/spec/secret-yaml.md +0 -32
- package/docs/content/contexts/spec/secret.md +0 -30
- package/docs/content/contexts/spec/yaml.md +0 -30
- package/docs/content/external-resources.md +0 -8
- package/docs/content/getting-started/_index.md +0 -28
- package/docs/content/installation/_index.md +0 -13
- package/docs/content/installation/docker.md +0 -15
- package/docs/content/installation/homebrew.md +0 -29
- package/docs/content/installation/npm.md +0 -22
- package/docs/content/installation/yarn.md +0 -22
- package/docs/content/more/_index.md +0 -7
- package/docs/content/operate on resources/_index.md +0 -10
- package/docs/content/pipelines/Run Pipeline.md +0 -38
- package/docs/content/pipelines/spec.md +0 -264
- package/docs/docs.spec.js +0 -8
- package/docs/index.js +0 -431
- package/docs/layouts/partials/menu-footer.html +0 -13
- package/docs/themes/docdock/LICENSE.md +0 -22
- package/docs/themes/docdock/README.md +0 -129
- package/docs/themes/docdock/archetypes/default.md +0 -9
- package/docs/themes/docdock/archetypes/slide.md +0 -46
- package/docs/themes/docdock/exampleSite/config.toml +0 -68
- package/docs/themes/docdock/exampleSite/content/_index.md +0 -50
- package/docs/themes/docdock/exampleSite/content/content-organisation/_index.md +0 -138
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/_index.md +0 -66
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/disable.md +0 -24
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/theme-variants.md +0 -35
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/themestyle.md +0 -25
- package/docs/themes/docdock/exampleSite/content/content-organisation/extramenu.md +0 -28
- package/docs/themes/docdock/exampleSite/content/content-organisation/logo.md +0 -12
- package/docs/themes/docdock/exampleSite/content/create-page/_index.md +0 -54
- package/docs/themes/docdock/exampleSite/content/create-page/homepage.md +0 -8
- package/docs/themes/docdock/exampleSite/content/create-page/myslide.md +0 -48
- package/docs/themes/docdock/exampleSite/content/create-page/page-images.md +0 -28
- package/docs/themes/docdock/exampleSite/content/create-page/page-slide.md +0 -114
- package/docs/themes/docdock/exampleSite/content/credits.md +0 -44
- package/docs/themes/docdock/exampleSite/content/getting-start/_index.md +0 -12
- package/docs/themes/docdock/exampleSite/content/getting-start/configuration.md +0 -56
- package/docs/themes/docdock/exampleSite/content/getting-start/installation.md +0 -83
- package/docs/themes/docdock/exampleSite/content/search/_index.md +0 -13
- package/docs/themes/docdock/exampleSite/content/shortcodes/_index.md +0 -10
- package/docs/themes/docdock/exampleSite/content/shortcodes/alert.md +0 -30
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/BachGavotteShort.mp3 +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/Carroll_AliceAuPaysDesMerveilles.pdf +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/adivorciarsetoca00cape.pdf +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/hugo.png +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/movieselectricsheep-flock-244-32500-2.mp4 +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.md +0 -59
- package/docs/themes/docdock/exampleSite/content/shortcodes/button.md +0 -37
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/_index.md +0 -46
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/_index.md +0 -6
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.md +0 -6
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.md +0 -6
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.md +0 -6
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.md +0 -6
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/_index.md +0 -11
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/test3.md +0 -6
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-3/_index.md +0 -6
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-4/_index.md +0 -7
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/test.md +0 -6
- package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt-include.md +0 -25
- package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt.md +0 -39
- package/docs/themes/docdock/exampleSite/content/shortcodes/expand.md +0 -41
- package/docs/themes/docdock/exampleSite/content/shortcodes/icon.md +0 -1254
- package/docs/themes/docdock/exampleSite/content/shortcodes/mermaid.md +0 -98
- package/docs/themes/docdock/exampleSite/content/shortcodes/notice.md +0 -61
- package/docs/themes/docdock/exampleSite/content/shortcodes/panel.md +0 -60
- package/docs/themes/docdock/exampleSite/content/shortcodes/revealjs.md +0 -119
- package/docs/themes/docdock/exampleSite/content/showcase.md +0 -15
- package/docs/themes/docdock/exampleSite/layouts/partials/custom-head.html +0 -10
- package/docs/themes/docdock/exampleSite/layouts/partials/menu-footer.html +0 -13
- package/docs/themes/docdock/exampleSite/layouts/shortcodes/ghcontributors.html +0 -31
- package/docs/themes/docdock/exampleSite/static/menu-entry-icon.png +0 -0
- package/docs/themes/docdock/exampleSite/static/showcase/bitfan.site.png +0 -0
- package/docs/themes/docdock/exampleSite/static/showcase/invincible.site.png +0 -0
- package/docs/themes/docdock/exampleSite/static/style-flex.png +0 -0
- package/docs/themes/docdock/exampleSite/static/style-original.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-gold.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-gray.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-green.png +0 -0
- package/docs/themes/docdock/i18n/en.toml +0 -44
- package/docs/themes/docdock/i18n/es.toml +0 -26
- package/docs/themes/docdock/i18n/fr.toml +0 -44
- package/docs/themes/docdock/i18n/nb.toml +0 -38
- package/docs/themes/docdock/images/screenshot.png +0 -0
- package/docs/themes/docdock/images/tn.png +0 -0
- package/docs/themes/docdock/layouts/404.html +0 -39
- package/docs/themes/docdock/layouts/_default/baseof.html +0 -32
- package/docs/themes/docdock/layouts/_default/li.html +0 -22
- package/docs/themes/docdock/layouts/_default/list.html +0 -20
- package/docs/themes/docdock/layouts/_default/single.html +0 -3
- package/docs/themes/docdock/layouts/index.html +0 -30
- package/docs/themes/docdock/layouts/index.json +0 -12
- package/docs/themes/docdock/layouts/partials/breadcrumb.html +0 -8
- package/docs/themes/docdock/layouts/partials/custom-content-footer.html +0 -6
- package/docs/themes/docdock/layouts/partials/custom-footer.html +0 -0
- package/docs/themes/docdock/layouts/partials/custom-head.html +0 -2
- package/docs/themes/docdock/layouts/partials/flex/body-aftercontent.html +0 -54
- package/docs/themes/docdock/layouts/partials/flex/body-beforecontent.html +0 -68
- package/docs/themes/docdock/layouts/partials/flex/head.html +0 -17
- package/docs/themes/docdock/layouts/partials/flex/scripts.html +0 -11
- package/docs/themes/docdock/layouts/partials/flex/selectnavigation.html +0 -58
- package/docs/themes/docdock/layouts/partials/header.html +0 -10
- package/docs/themes/docdock/layouts/partials/language-selector.html +0 -18
- package/docs/themes/docdock/layouts/partials/menu-footer.html +0 -0
- package/docs/themes/docdock/layouts/partials/menu.html +0 -82
- package/docs/themes/docdock/layouts/partials/next-prev-page.html +0 -44
- package/docs/themes/docdock/layouts/partials/original/body-aftercontent.html +0 -13
- package/docs/themes/docdock/layouts/partials/original/body-beforecontent.html +0 -128
- package/docs/themes/docdock/layouts/partials/original/head.html +0 -23
- package/docs/themes/docdock/layouts/partials/original/scripts.html +0 -10
- package/docs/themes/docdock/layouts/partials/pagination.html +0 -9
- package/docs/themes/docdock/layouts/shortcodes/alert.html +0 -6
- package/docs/themes/docdock/layouts/shortcodes/anchor.html +0 -1
- package/docs/themes/docdock/layouts/shortcodes/anchorlink.html +0 -1
- package/docs/themes/docdock/layouts/shortcodes/attachmentlink.html +0 -5
- package/docs/themes/docdock/layouts/shortcodes/attachments.html +0 -33
- package/docs/themes/docdock/layouts/shortcodes/button.html +0 -6
- package/docs/themes/docdock/layouts/shortcodes/children.html +0 -104
- package/docs/themes/docdock/layouts/shortcodes/code.html +0 -1
- package/docs/themes/docdock/layouts/shortcodes/emoticon.html +0 -29
- package/docs/themes/docdock/layouts/shortcodes/excerpt-include.html +0 -14
- package/docs/themes/docdock/layouts/shortcodes/excerpt.html +0 -7
- package/docs/themes/docdock/layouts/shortcodes/expand.html +0 -16
- package/docs/themes/docdock/layouts/shortcodes/header.html +0 -16
- package/docs/themes/docdock/layouts/shortcodes/icon.html +0 -13
- package/docs/themes/docdock/layouts/shortcodes/image.html +0 -5
- package/docs/themes/docdock/layouts/shortcodes/info.html +0 -10
- package/docs/themes/docdock/layouts/shortcodes/label.html +0 -1
- package/docs/themes/docdock/layouts/shortcodes/mermaid.html +0 -3
- package/docs/themes/docdock/layouts/shortcodes/note.html +0 -4
- package/docs/themes/docdock/layouts/shortcodes/notice.html +0 -1
- package/docs/themes/docdock/layouts/shortcodes/pagelink.html +0 -12
- package/docs/themes/docdock/layouts/shortcodes/pagetreesearch.html +0 -1
- package/docs/themes/docdock/layouts/shortcodes/panel.html +0 -5
- package/docs/themes/docdock/layouts/shortcodes/recently-updated.html +0 -7
- package/docs/themes/docdock/layouts/shortcodes/relref.html +0 -14
- package/docs/themes/docdock/layouts/shortcodes/revealjs.html +0 -66
- package/docs/themes/docdock/layouts/shortcodes/section.html +0 -1
- package/docs/themes/docdock/layouts/shortcodes/task.html +0 -10
- package/docs/themes/docdock/layouts/shortcodes/tasklist.html +0 -4
- package/docs/themes/docdock/layouts/shortcodes/tip.html +0 -10
- package/docs/themes/docdock/layouts/shortcodes/toc.html +0 -2
- package/docs/themes/docdock/layouts/shortcodes/unknow.html +0 -1
- package/docs/themes/docdock/layouts/shortcodes/userlink.html +0 -1
- package/docs/themes/docdock/layouts/shortcodes/viewppt.html +0 -5
- package/docs/themes/docdock/layouts/shortcodes/viewxls.html +0 -5
- package/docs/themes/docdock/layouts/shortcodes/warning.html +0 -12
- package/docs/themes/docdock/layouts/shortcodes/well.html +0 -1
- package/docs/themes/docdock/layouts/slide/single.html +0 -38
- package/docs/themes/docdock/static/css/auto-complete.css +0 -49
- package/docs/themes/docdock/static/css/bootstrap.min.css +0 -1884
- package/docs/themes/docdock/static/css/featherlight.min.css +0 -8
- package/docs/themes/docdock/static/css/font-awesome.min.css +0 -4
- package/docs/themes/docdock/static/css/horsey.css +0 -35
- package/docs/themes/docdock/static/css/hybrid.css +0 -102
- package/docs/themes/docdock/static/css/nucleus.css +0 -617
- package/docs/themes/docdock/static/fonts/FontAwesome.otf +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.eot +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.svg +0 -359
- package/docs/themes/docdock/static/fonts/Inconsolata.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.woff +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Bold.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Bold.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Regular.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.svg +0 -1019
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.svg +0 -918
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Italic.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Medium.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/RobotoMono-Medium.ttf +0 -0
- package/docs/themes/docdock/static/fonts/RobotoMono-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.svg +0 -332
- package/docs/themes/docdock/static/fonts/Work_Sans_200.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.svg +0 -331
- package/docs/themes/docdock/static/fonts/Work_Sans_300.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.svg +0 -333
- package/docs/themes/docdock/static/fonts/Work_Sans_500.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.svg +0 -2671
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.eot +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.svg +0 -288
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/docs/themes/docdock/static/images/clippy.svg +0 -4
- package/docs/themes/docdock/static/images/favicon.png +0 -0
- package/docs/themes/docdock/static/images/gopher-404.jpg +0 -0
- package/docs/themes/docdock/static/js/auto-complete.js +0 -223
- package/docs/themes/docdock/static/js/clipboard.min.js +0 -7
- package/docs/themes/docdock/static/js/docdock.js +0 -309
- package/docs/themes/docdock/static/js/featherlight.min.js +0 -8
- package/docs/themes/docdock/static/js/highlight.pack.js +0 -2
- package/docs/themes/docdock/static/js/html5shiv-printshiv.min.js +0 -4
- package/docs/themes/docdock/static/js/jquery-2.x.min.js +0 -4
- package/docs/themes/docdock/static/js/lunr.min.js +0 -6
- package/docs/themes/docdock/static/js/modernizr.custom.71422.js +0 -4
- package/docs/themes/docdock/static/js/search.js +0 -91
- package/docs/themes/docdock/static/mermaid/mermaid.css +0 -273
- package/docs/themes/docdock/static/mermaid/mermaid.dark.css +0 -275
- package/docs/themes/docdock/static/mermaid/mermaid.forest.css +0 -353
- package/docs/themes/docdock/static/mermaid/mermaid.js +0 -30
- package/docs/themes/docdock/static/none.html +0 -0
- package/docs/themes/docdock/static/revealjs/.travis.yml +0 -5
- package/docs/themes/docdock/static/revealjs/CONTRIBUTING.md +0 -23
- package/docs/themes/docdock/static/revealjs/Gruntfile.js +0 -192
- package/docs/themes/docdock/static/revealjs/LICENSE +0 -19
- package/docs/themes/docdock/static/revealjs/README.md +0 -1238
- package/docs/themes/docdock/static/revealjs/bower.json +0 -27
- package/docs/themes/docdock/static/revealjs/css/print/paper.css +0 -203
- package/docs/themes/docdock/static/revealjs/css/print/pdf.css +0 -178
- package/docs/themes/docdock/static/revealjs/css/reveal.css +0 -1555
- package/docs/themes/docdock/static/revealjs/css/reveal.scss +0 -1717
- package/docs/themes/docdock/static/revealjs/css/theme/README.md +0 -21
- package/docs/themes/docdock/static/revealjs/css/theme/beige.css +0 -268
- package/docs/themes/docdock/static/revealjs/css/theme/black.css +0 -264
- package/docs/themes/docdock/static/revealjs/css/theme/blood.css +0 -287
- package/docs/themes/docdock/static/revealjs/css/theme/league.css +0 -270
- package/docs/themes/docdock/static/revealjs/css/theme/moon.css +0 -268
- package/docs/themes/docdock/static/revealjs/css/theme/night.css +0 -262
- package/docs/themes/docdock/static/revealjs/css/theme/serif.css +0 -264
- package/docs/themes/docdock/static/revealjs/css/theme/simple.css +0 -267
- package/docs/themes/docdock/static/revealjs/css/theme/sky.css +0 -271
- package/docs/themes/docdock/static/revealjs/css/theme/solarized.css +0 -268
- package/docs/themes/docdock/static/revealjs/css/theme/source/beige.scss +0 -39
- package/docs/themes/docdock/static/revealjs/css/theme/source/black.scss +0 -49
- package/docs/themes/docdock/static/revealjs/css/theme/source/blood.scss +0 -78
- package/docs/themes/docdock/static/revealjs/css/theme/source/league.scss +0 -34
- package/docs/themes/docdock/static/revealjs/css/theme/source/moon.scss +0 -57
- package/docs/themes/docdock/static/revealjs/css/theme/source/night.scss +0 -34
- package/docs/themes/docdock/static/revealjs/css/theme/source/serif.scss +0 -35
- package/docs/themes/docdock/static/revealjs/css/theme/source/simple.scss +0 -43
- package/docs/themes/docdock/static/revealjs/css/theme/source/sky.scss +0 -46
- package/docs/themes/docdock/static/revealjs/css/theme/source/solarized.scss +0 -63
- package/docs/themes/docdock/static/revealjs/css/theme/source/white.scss +0 -49
- package/docs/themes/docdock/static/revealjs/css/theme/template/mixins.scss +0 -29
- package/docs/themes/docdock/static/revealjs/css/theme/template/settings.scss +0 -43
- package/docs/themes/docdock/static/revealjs/css/theme/template/theme.scss +0 -316
- package/docs/themes/docdock/static/revealjs/css/theme/white.css +0 -264
- package/docs/themes/docdock/static/revealjs/demo.html +0 -410
- package/docs/themes/docdock/static/revealjs/index.html +0 -49
- package/docs/themes/docdock/static/revealjs/js/reveal.js +0 -5239
- package/docs/themes/docdock/static/revealjs/lib/css/zenburn.css +0 -80
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/LICENSE +0 -2
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.css +0 -10
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/LICENSE +0 -45
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro.css +0 -39
- package/docs/themes/docdock/static/revealjs/lib/js/classList.js +0 -2
- package/docs/themes/docdock/static/revealjs/lib/js/head.min.js +0 -9
- package/docs/themes/docdock/static/revealjs/lib/js/html5shiv.js +0 -7
- package/docs/themes/docdock/static/revealjs/package.json +0 -43
- package/docs/themes/docdock/static/revealjs/plugin/highlight/highlight.js +0 -77
- package/docs/themes/docdock/static/revealjs/plugin/markdown/example.html +0 -129
- package/docs/themes/docdock/static/revealjs/plugin/markdown/example.md +0 -31
- package/docs/themes/docdock/static/revealjs/plugin/markdown/markdown.js +0 -412
- package/docs/themes/docdock/static/revealjs/plugin/markdown/marked.js +0 -6
- package/docs/themes/docdock/static/revealjs/plugin/math/math.js +0 -67
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/client.js +0 -13
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/index.js +0 -64
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/master.js +0 -34
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/package.json +0 -19
- package/docs/themes/docdock/static/revealjs/plugin/notes/notes.html +0 -759
- package/docs/themes/docdock/static/revealjs/plugin/notes/notes.js +0 -155
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/client.js +0 -65
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/index.js +0 -69
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/notes.html +0 -585
- package/docs/themes/docdock/static/revealjs/plugin/print-pdf/print-pdf.js +0 -69
- package/docs/themes/docdock/static/revealjs/plugin/search/search.js +0 -206
- package/docs/themes/docdock/static/revealjs/plugin/zoom-js/zoom.js +0 -272
- package/docs/themes/docdock/static/revealjs/test/examples/assets/image1.png +0 -0
- package/docs/themes/docdock/static/revealjs/test/examples/assets/image2.png +0 -0
- package/docs/themes/docdock/static/revealjs/test/examples/barebones.html +0 -41
- package/docs/themes/docdock/static/revealjs/test/examples/embedded-media.html +0 -49
- package/docs/themes/docdock/static/revealjs/test/examples/math.html +0 -185
- package/docs/themes/docdock/static/revealjs/test/examples/slide-backgrounds.html +0 -144
- package/docs/themes/docdock/static/revealjs/test/examples/slide-transitions.html +0 -101
- package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.css +0 -244
- package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.js +0 -2212
- package/docs/themes/docdock/static/revealjs/test/simple.md +0 -12
- package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.html +0 -134
- package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.js +0 -46
- package/docs/themes/docdock/static/revealjs/test/test-markdown-external.html +0 -36
- package/docs/themes/docdock/static/revealjs/test/test-markdown-external.js +0 -24
- package/docs/themes/docdock/static/revealjs/test/test-markdown-options.html +0 -41
- package/docs/themes/docdock/static/revealjs/test/test-markdown-options.js +0 -26
- package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.html +0 -128
- package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.js +0 -47
- package/docs/themes/docdock/static/revealjs/test/test-markdown.html +0 -52
- package/docs/themes/docdock/static/revealjs/test/test-markdown.js +0 -15
- package/docs/themes/docdock/static/revealjs/test/test-pdf.html +0 -83
- package/docs/themes/docdock/static/revealjs/test/test-pdf.js +0 -15
- package/docs/themes/docdock/static/revealjs/test/test.html +0 -86
- package/docs/themes/docdock/static/revealjs/test/test.js +0 -597
- package/docs/themes/docdock/static/scss/flex/article.scss +0 -356
- package/docs/themes/docdock/static/scss/flex/fonts.scss +0 -38
- package/docs/themes/docdock/static/scss/flex/footer.scss +0 -45
- package/docs/themes/docdock/static/scss/flex/header.scss +0 -89
- package/docs/themes/docdock/static/scss/flex/main.scss +0 -164
- package/docs/themes/docdock/static/scss/flex/medias.scss +0 -74
- package/docs/themes/docdock/static/scss/flex/menu.scss +0 -126
- package/docs/themes/docdock/static/scss/flex/shortcode.children.scss +0 -34
- package/docs/themes/docdock/static/scss/flex/shortcode.notice.scss +0 -63
- package/docs/themes/docdock/static/scss/flex/style.scss +0 -14
- package/docs/themes/docdock/static/scss/original/_colours.scss +0 -14
- package/docs/themes/docdock/static/scss/original/_functions.scss +0 -89
- package/docs/themes/docdock/static/scss/original/_variables.scss +0 -137
- package/docs/themes/docdock/static/scss/original/fonts.scss +0 -23
- package/docs/themes/docdock/static/scss/original/main.scss +0 -1233
- package/docs/themes/docdock/static/scss/original/print.scss +0 -29
- package/docs/themes/docdock/static/scss/original/responsive.scss +0 -124
- package/docs/themes/docdock/static/scss/original/shortcodes.scss +0 -32
- package/docs/themes/docdock/static/scss/original/sidebar.scss +0 -276
- package/docs/themes/docdock/static/scss/original/style.scss +0 -16
- package/docs/themes/docdock/static/theme-flex/ribbon.png +0 -0
- package/docs/themes/docdock/static/theme-flex/script.js +0 -277
- package/docs/themes/docdock/static/theme-flex/style.css +0 -728
- package/docs/themes/docdock/static/theme-original/script.js +0 -133
- package/docs/themes/docdock/static/theme-original/style.css +0 -1411
- package/docs/themes/docdock/static/theme-original/variant-blue.css +0 -0
- package/docs/themes/docdock/static/theme-original/variant-gold.css +0 -61
- package/docs/themes/docdock/static/theme-original/variant-gray.css +0 -61
- package/docs/themes/docdock/static/theme-original/variant-green.css +0 -61
- package/docs/themes/docdock/theme.toml +0 -22
- package/e2e/README.md +0 -10
- package/e2e/data/crud.pip.yaml +0 -23
- package/e2e/data/test-run.pip.yaml +0 -23
- package/e2e/e2e.spec.sh +0 -25
- package/e2e/helpers.sh +0 -10
- package/e2e/scenarios/agents.sh +0 -1
- package/e2e/scenarios/annotations.sh +0 -2
- package/e2e/scenarios/boards.sh +0 -3
- package/e2e/scenarios/builds.sh +0 -1
- package/e2e/scenarios/clusters.sh +0 -1
- package/e2e/scenarios/compositions.sh +0 -1
- package/e2e/scenarios/contexts.sh +0 -1
- package/e2e/scenarios/environments.sh +0 -1
- package/e2e/scenarios/helm-repo.sh +0 -1
- package/e2e/scenarios/images.sh +0 -1
- package/e2e/scenarios/pipeline-run.sh +0 -26
- package/e2e/scenarios/pipelines.sh +0 -31
- package/e2e/scenarios/projects.sh +0 -17
- package/e2e/scenarios/registry.sh +0 -1
- package/e2e/scenarios/repository.sh +0 -2
- package/e2e/scenarios/runtime-environment.sh +0 -1
- package/e2e/scenarios/step-types.sh +0 -1
- package/e2e/scenarios/system-runtime-environments.sh +0 -1
- package/e2e/scenarios/teams.sh +0 -1
- package/e2e/scenarios/tokens.sh +0 -1
- package/e2e/scenarios/triggers.sh +0 -3
- package/test-setup.js +0 -34
- package/yarn.lock +0 -6767
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
+++
|
|
2
|
-
title = "Spec"
|
|
3
|
-
+++
|
|
4
|
-
|
|
5
|
-
A Pipeline needs `.version`, `.kind`, and `.metadata` fields.
|
|
6
|
-
|
|
7
|
-
A Pipeline also needs a `.spec` section.
|
|
8
|
-
|
|
9
|
-
### Examples
|
|
10
|
-
|
|
11
|
-
Use create/replace/delete commands to manage your pipeline
|
|
12
|
-
|
|
13
|
-
```shell
|
|
14
|
-
# create pipeline
|
|
15
|
-
codefresh create -f pipeline.yaml
|
|
16
|
-
|
|
17
|
-
# get created/modified pipeline spec
|
|
18
|
-
codefresh get pipeline <name> -o yaml > pipeline.yaml
|
|
19
|
-
|
|
20
|
-
# update pipeline with modified pipeline spec
|
|
21
|
-
codefresh replace -f pipeline.yaml
|
|
22
|
-
|
|
23
|
-
# delete pipeline using spec file
|
|
24
|
-
codefresh delete -f pipeline.yaml
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
See the examples of pipeline spec below to manage your pipelines.
|
|
28
|
-
|
|
29
|
-
#### Basic pipeline with cron triggers in spec
|
|
30
|
-
|
|
31
|
-
```yaml
|
|
32
|
-
version: '1.0'
|
|
33
|
-
kind: pipeline
|
|
34
|
-
metadata:
|
|
35
|
-
name: cron
|
|
36
|
-
spec:
|
|
37
|
-
cronTriggers:
|
|
38
|
-
- name: every minute
|
|
39
|
-
type: cron
|
|
40
|
-
message: every minute
|
|
41
|
-
expression: 0/1 * 1/1 * *
|
|
42
|
-
steps:
|
|
43
|
-
test:
|
|
44
|
-
image: alpine
|
|
45
|
-
commands:
|
|
46
|
-
- echo test
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
#### Basic pipeline with cron triggers with variables
|
|
50
|
-
|
|
51
|
-
```yaml
|
|
52
|
-
version: '1.0'
|
|
53
|
-
kind: pipeline
|
|
54
|
-
metadata:
|
|
55
|
-
name: cron
|
|
56
|
-
spec:
|
|
57
|
-
cronTriggers:
|
|
58
|
-
- name: every minute
|
|
59
|
-
type: cron
|
|
60
|
-
message: every minute
|
|
61
|
-
expression: 0/1 * 1/1 * *
|
|
62
|
-
variables:
|
|
63
|
-
- key: TEST_VAR
|
|
64
|
-
value: 'my-test'
|
|
65
|
-
steps:
|
|
66
|
-
test:
|
|
67
|
-
image: alpine
|
|
68
|
-
commands:
|
|
69
|
-
- echo ${{TEST_VARIABLE}}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
#### Basic pipeline with cron triggers with run options
|
|
73
|
-
|
|
74
|
-
```yaml
|
|
75
|
-
version: '1.0'
|
|
76
|
-
kind: pipeline
|
|
77
|
-
metadata:
|
|
78
|
-
name: cron
|
|
79
|
-
spec:
|
|
80
|
-
cronTriggers:
|
|
81
|
-
- name: every minute
|
|
82
|
-
type: cron
|
|
83
|
-
message: every minute
|
|
84
|
-
expression: 0/1 * 1/1 * *
|
|
85
|
-
options:
|
|
86
|
-
resetVolume: true
|
|
87
|
-
steps:
|
|
88
|
-
test:
|
|
89
|
-
image: alpine
|
|
90
|
-
commands:
|
|
91
|
-
- echo test >> test.txt
|
|
92
|
-
- cat test.txt
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
#### Pipeline started by cron trigger but simulating the git trigger
|
|
96
|
-
|
|
97
|
-
Note that `spec.triggers.0.id` and `spec.cronTriggers.gitTriggerId`
|
|
98
|
-
should be the same value and a valid ObjectId.
|
|
99
|
-
|
|
100
|
-
```yaml
|
|
101
|
-
version: '1.0'
|
|
102
|
-
kind: pipeline
|
|
103
|
-
metadata:
|
|
104
|
-
name: cron
|
|
105
|
-
spec:
|
|
106
|
-
triggers:
|
|
107
|
-
- type: git
|
|
108
|
-
name: test
|
|
109
|
-
repo: repo-owner/repo-name
|
|
110
|
-
events:
|
|
111
|
-
- push.heads
|
|
112
|
-
pullRequestAllowForkEvents: false
|
|
113
|
-
commentRegex: /.*/gi
|
|
114
|
-
branchRegex: /.*/gi
|
|
115
|
-
branchRegexInput: regex
|
|
116
|
-
provider: git-context-name
|
|
117
|
-
id: 65329431edb87250ff128acc
|
|
118
|
-
|
|
119
|
-
cronTriggers:
|
|
120
|
-
- name: every minute
|
|
121
|
-
type: cron
|
|
122
|
-
message: every minute
|
|
123
|
-
expression: 0/1 * 1/1 * *
|
|
124
|
-
gitTriggerId: 65329431edb87250ff128acc
|
|
125
|
-
branch: master
|
|
126
|
-
|
|
127
|
-
steps:
|
|
128
|
-
test:
|
|
129
|
-
image: alpine
|
|
130
|
-
commands:
|
|
131
|
-
- echo ${{CF_BRANCH}}
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
#### **Disable** cron trigger in pipeline
|
|
135
|
-
|
|
136
|
-
```yaml
|
|
137
|
-
version: '1.0'
|
|
138
|
-
kind: pipeline
|
|
139
|
-
metadata:
|
|
140
|
-
name: cron
|
|
141
|
-
spec:
|
|
142
|
-
cronTriggers:
|
|
143
|
-
- name: every minute
|
|
144
|
-
type: cron
|
|
145
|
-
message: every minute
|
|
146
|
-
expression: 0/1 * 1/1 * *
|
|
147
|
-
disabled: true
|
|
148
|
-
steps:
|
|
149
|
-
test:
|
|
150
|
-
image: alpine
|
|
151
|
-
commands:
|
|
152
|
-
- echo test
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
#### Basic Pipeline with clone step and git trigger
|
|
156
|
-
|
|
157
|
-
```yaml
|
|
158
|
-
version: '1.0'
|
|
159
|
-
kind: pipeline
|
|
160
|
-
metadata:
|
|
161
|
-
name: basic-pipeline
|
|
162
|
-
spec:
|
|
163
|
-
triggers:
|
|
164
|
-
- type: git
|
|
165
|
-
name: test
|
|
166
|
-
repo: repo-owner/repo-name
|
|
167
|
-
events:
|
|
168
|
-
- push.heads
|
|
169
|
-
pullRequestAllowForkEvents: false
|
|
170
|
-
commentRegex: /.*/gi
|
|
171
|
-
branchRegex: /.*/gi
|
|
172
|
-
branchRegexInput: regex
|
|
173
|
-
provider: git-context-name
|
|
174
|
-
variables:
|
|
175
|
-
- key: PORT
|
|
176
|
-
value: '3000'
|
|
177
|
-
- key: SECRET
|
|
178
|
-
value: 'secret-value'
|
|
179
|
-
encrypted: true
|
|
180
|
-
steps:
|
|
181
|
-
clone_step:
|
|
182
|
-
repo: codefresh-contrib/python-flask-sample-app
|
|
183
|
-
revision: master
|
|
184
|
-
type: git-clone
|
|
185
|
-
git: CF-default
|
|
186
|
-
test_step_1:
|
|
187
|
-
image: alpine
|
|
188
|
-
working_directory: '${{clone_step}}'
|
|
189
|
-
commands:
|
|
190
|
-
- echo ls
|
|
191
|
-
- echo "hello world"
|
|
192
|
-
- echo "plain value $PORT"
|
|
193
|
-
- echo "encrypted value $PAPA"
|
|
194
|
-
- echo "value from context $COOKIE"
|
|
195
|
-
build:
|
|
196
|
-
type: build
|
|
197
|
-
working_directory: '${{clone_step}}'
|
|
198
|
-
dockerfile: ./Dockerfile
|
|
199
|
-
image_name: my-custom-docker-image
|
|
200
|
-
tag: bla
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
#### Pipeline with a remote spec template brought from a git repository
|
|
204
|
-
```yaml
|
|
205
|
-
version: '1.0'
|
|
206
|
-
kind: pipeline
|
|
207
|
-
metadata:
|
|
208
|
-
name: basic-pipeline
|
|
209
|
-
spec:
|
|
210
|
-
triggers:
|
|
211
|
-
- type: git
|
|
212
|
-
name: test
|
|
213
|
-
repo: repo-owner/repo-name
|
|
214
|
-
events:
|
|
215
|
-
- push.heads
|
|
216
|
-
pullRequestAllowForkEvents: false
|
|
217
|
-
commentRegex: /.*/gi
|
|
218
|
-
branchRegex: /.*/gi
|
|
219
|
-
branchRegexInput: regex
|
|
220
|
-
provider: git-context-name
|
|
221
|
-
contexts: []
|
|
222
|
-
variables:
|
|
223
|
-
- key: PORT
|
|
224
|
-
value: '3000'
|
|
225
|
-
- key: SECRET
|
|
226
|
-
value: 'secret-value'
|
|
227
|
-
encrypted: true
|
|
228
|
-
specTemplate:
|
|
229
|
-
location: git
|
|
230
|
-
context: git-context-name # if not specified will use the default git-context
|
|
231
|
-
repo: codefresh-io/cli
|
|
232
|
-
path: codefresh.yml
|
|
233
|
-
revision: master # can be a branch or commit. if not specified will use CF_BRANCH variable value
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
#### Pipeline with a remote spec template from a public git URL
|
|
237
|
-
```yaml
|
|
238
|
-
version: '1.0'
|
|
239
|
-
kind: pipeline
|
|
240
|
-
metadata:
|
|
241
|
-
name: basic-pipeline
|
|
242
|
-
spec:
|
|
243
|
-
triggers:
|
|
244
|
-
- type: git
|
|
245
|
-
name: test
|
|
246
|
-
repo: repo-owner/repo-name
|
|
247
|
-
events:
|
|
248
|
-
- push.heads
|
|
249
|
-
pullRequestAllowForkEvents: false
|
|
250
|
-
commentRegex: /.*/gi
|
|
251
|
-
branchRegex: /.*/gi
|
|
252
|
-
branchRegexInput: regex
|
|
253
|
-
provider: git-context-name
|
|
254
|
-
contexts: []
|
|
255
|
-
variables:
|
|
256
|
-
- key: PORT
|
|
257
|
-
value: '3000'
|
|
258
|
-
- key: SECRET
|
|
259
|
-
value: 'secret-value'
|
|
260
|
-
encrypted: true
|
|
261
|
-
specTemplate:
|
|
262
|
-
location: url
|
|
263
|
-
url: 'https://raw.githubusercontent.com/codefresh-io/cli/master/codefresh.yml'
|
|
264
|
-
```
|
package/docs/docs.spec.js
DELETED
package/docs/index.js
DELETED
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const Promise = require('bluebird');
|
|
3
|
-
const recursive = Promise.promisify(require('recursive-readdir'));
|
|
4
|
-
const rimraf = Promise.promisify(require('rimraf'));
|
|
5
|
-
const copydir = require('copy-dir');
|
|
6
|
-
const path = require('path');
|
|
7
|
-
const _ = require('lodash');
|
|
8
|
-
const rp = require('request-promise');
|
|
9
|
-
const CFError = require('cf-errors');
|
|
10
|
-
|
|
11
|
-
const TEMP_DIR = path.resolve(__dirname, '../temp');
|
|
12
|
-
const TEMPLATE_DIR = path.resolve(__dirname);
|
|
13
|
-
const FILES_TO_IGNORE = ['index.js', 'docs.spec.js'];
|
|
14
|
-
const baseDir = path.resolve(TEMP_DIR, './content');
|
|
15
|
-
const ALLOW_BETA_COMMANDS = process.env.ALLOW_BETA_COMMANDS;
|
|
16
|
-
const categoriesOrder = {
|
|
17
|
-
completion: 30,
|
|
18
|
-
authentication: 31,
|
|
19
|
-
'operate on resources': 32,
|
|
20
|
-
pipelines: 40,
|
|
21
|
-
'pipelines v2 (beta)': 42,
|
|
22
|
-
projects: 45,
|
|
23
|
-
builds: 50,
|
|
24
|
-
contexts: 70,
|
|
25
|
-
images: 80,
|
|
26
|
-
triggers: 90,
|
|
27
|
-
environments: 100,
|
|
28
|
-
compositions: 110,
|
|
29
|
-
'helm repos': 111,
|
|
30
|
-
'predefined pipelines': 120,
|
|
31
|
-
'cli config': 121,
|
|
32
|
-
teams: 130,
|
|
33
|
-
more: 150,
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const hasSubCommands = async (command) => {
|
|
38
|
-
const files = await recursive(path.resolve(__dirname, '../lib/interface/cli/commands'));
|
|
39
|
-
|
|
40
|
-
let hasSubCommand = false;
|
|
41
|
-
for (let j = 0; j < files.length && !hasSubCommand; j++) {
|
|
42
|
-
const file = files[j];
|
|
43
|
-
|
|
44
|
-
if (!file.endsWith('.cmd.js')) {
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const currCommand = require(file);
|
|
49
|
-
if (_.isEqual(currCommand.parentCommand, command) && !command.isRoot()) {
|
|
50
|
-
hasSubCommand = true;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return hasSubCommand;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
const getNestedCategories = async (command) => {
|
|
57
|
-
let nestedCategory = '';
|
|
58
|
-
const categoryArr = [];
|
|
59
|
-
let docs = command.prepareDocs();
|
|
60
|
-
categoryArr.push(docs.category);
|
|
61
|
-
let currCommand = command.parentCommand;
|
|
62
|
-
while (currCommand && await hasSubCommands(currCommand)) {
|
|
63
|
-
docs = currCommand.prepareDocs();
|
|
64
|
-
categoryArr.push(docs.category);
|
|
65
|
-
currCommand = currCommand.parentCommand;
|
|
66
|
-
}
|
|
67
|
-
nestedCategory = categoryArr.pop();
|
|
68
|
-
for (let i = categoryArr.length - 1; i >= 0; i--) {
|
|
69
|
-
nestedCategory = nestedCategory + '/' + categoryArr[i];
|
|
70
|
-
}
|
|
71
|
-
if (!nestedCategory) {
|
|
72
|
-
nestedCategory = command.prepareDocs().category;
|
|
73
|
-
}
|
|
74
|
-
return nestedCategory;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
const deleteTempFolder = async () => {
|
|
78
|
-
await rimraf(TEMP_DIR);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
const copyTemplateToTmp = async () => {
|
|
82
|
-
const filePathsToIgnore = _.map(FILES_TO_IGNORE, (file) => {
|
|
83
|
-
return path.resolve(TEMPLATE_DIR, file);
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
copydir.sync(TEMPLATE_DIR, TEMP_DIR, (stat, filepath) => {
|
|
87
|
-
if (stat === 'file' && filePathsToIgnore.includes(filepath)) {
|
|
88
|
-
return false;
|
|
89
|
-
} else {
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* creates a specific command content and file
|
|
97
|
-
* in case the file already exists in the base docs folder it will extend it
|
|
98
|
-
* possible extensions are: HEADER, DESCRIPTION, COMMANDS, ARGUMENTS, OPTIONS
|
|
99
|
-
*/
|
|
100
|
-
const getWeight = async (command) => {
|
|
101
|
-
const docs = command.prepareDocs();
|
|
102
|
-
let weight = 0;
|
|
103
|
-
if (docs.weight) {
|
|
104
|
-
return docs.weight;
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
let parent = command.getParentCommand();
|
|
108
|
-
while (parent && !parent.prepareDocs().weight) {
|
|
109
|
-
parent = parent.getParentCommand();
|
|
110
|
-
}
|
|
111
|
-
if (parent) {
|
|
112
|
-
weight = parent.prepareDocs().weight;
|
|
113
|
-
}
|
|
114
|
-
return weight;
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
const createCommandFile = async (nestedCategory, command) => {
|
|
119
|
-
const docs = command.prepareDocs();
|
|
120
|
-
const dir = path.resolve(baseDir, `${(nestedCategory || 'undefined').toLowerCase()}`);
|
|
121
|
-
|
|
122
|
-
const commandFilePath = path.resolve(dir, `./${docs.title}.md`);
|
|
123
|
-
let finalFileString = '';
|
|
124
|
-
let skeletonFileExists = false;
|
|
125
|
-
if (fs.existsSync(commandFilePath)) {
|
|
126
|
-
finalFileString = fs.readFileSync(commandFilePath, 'utf8');
|
|
127
|
-
skeletonFileExists = true;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// HEADER STRING
|
|
131
|
-
let headerString;
|
|
132
|
-
const weight = await getWeight(command);
|
|
133
|
-
if (docs.subCategory) {
|
|
134
|
-
headerString = `+++\ntitle = "${docs.subCategory}"\nweight = ${weight || 100}\n+++\n\n`;
|
|
135
|
-
} else {
|
|
136
|
-
headerString = `+++\ntitle = "${docs.title}"\nweight = ${weight || 100}\n+++\n\n`;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (skeletonFileExists) {
|
|
140
|
-
finalFileString = finalFileString.replace('{{HEADER}}', headerString);
|
|
141
|
-
} else {
|
|
142
|
-
finalFileString += headerString;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// DESCRIPTION STRING
|
|
146
|
-
let descriptionString = '### Description\n\n';
|
|
147
|
-
descriptionString += `${docs.description}\n\n`;
|
|
148
|
-
descriptionString += `${docs.usage}\n`;
|
|
149
|
-
if (skeletonFileExists) {
|
|
150
|
-
finalFileString = finalFileString.replace('{{DESCRIPTION}}', descriptionString);
|
|
151
|
-
} else {
|
|
152
|
-
finalFileString += descriptionString;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// COMMAND string
|
|
156
|
-
const mainCommand = docs.command.shift();
|
|
157
|
-
let commandsString = `### Command\n\`${mainCommand}\``;
|
|
158
|
-
if (docs.command.length) {
|
|
159
|
-
commandsString += `\n\n#### Aliases\n`;
|
|
160
|
-
_.forEach(docs.command, (command) => {
|
|
161
|
-
commandsString += `\n\n\`${command}\``;
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
commandsString += '\n\n';
|
|
165
|
-
|
|
166
|
-
if (skeletonFileExists) {
|
|
167
|
-
finalFileString = finalFileString.replace('{{COMMANDS}}', commandsString);
|
|
168
|
-
} else {
|
|
169
|
-
finalFileString += commandsString;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// ARGUMENTS string
|
|
173
|
-
docs.command.shift();
|
|
174
|
-
if (docs.positionals.length) {
|
|
175
|
-
const argumentsString = `### Arguments\n\nOption | Alias | Default | Description\n--------- | --------- | ----------- | -----------\n${docs.positionals}`;
|
|
176
|
-
if (skeletonFileExists) {
|
|
177
|
-
finalFileString = finalFileString.replace('{{ARGUMENTS}}', argumentsString);
|
|
178
|
-
} else {
|
|
179
|
-
finalFileString += argumentsString;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
// OPTIONS string
|
|
184
|
-
if (docs.options) {
|
|
185
|
-
let optionsString = '';
|
|
186
|
-
_.forEach(docs.options, (options, group) => {
|
|
187
|
-
optionsString = `### ${group}\n\nOption | Alias | Type | Default | Description\n--------- | --------- | --------- |----------- | -----------\n${options}` + optionsString;
|
|
188
|
-
});
|
|
189
|
-
if (skeletonFileExists) {
|
|
190
|
-
finalFileString = finalFileString.replace('{{OPTIONS}}', optionsString);
|
|
191
|
-
} else {
|
|
192
|
-
finalFileString += optionsString;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// EXAMPLES string
|
|
197
|
-
if (docs.examples.length) {
|
|
198
|
-
const examplesString = `### Examples\n\n${docs.examples}`;
|
|
199
|
-
if (skeletonFileExists) {
|
|
200
|
-
finalFileString = finalFileString.replace('{{EXAMPLES}}', examplesString);
|
|
201
|
-
} else {
|
|
202
|
-
finalFileString += examplesString;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
fs.writeFileSync(commandFilePath, finalFileString);
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
const createCategoryFile = async (content, category) => {
|
|
210
|
-
const indexFile = path.resolve(baseDir, `./${(category || 'undefined').toLowerCase()}/_index.md`);
|
|
211
|
-
const finalContent = content.replace('{{COMMANDS}}', '');
|
|
212
|
-
fs.writeFileSync(indexFile, finalContent);
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* updates the category main file with a specific command
|
|
217
|
-
* possible extensions are: HEADER, COMMANDS
|
|
218
|
-
*/
|
|
219
|
-
const updateCategoryFileArray = async (nestedCategory, command, existingContent) => {
|
|
220
|
-
const docs = command.prepareDocs();
|
|
221
|
-
const { category } = docs;
|
|
222
|
-
const finalCategoryArr = existingContent || {};
|
|
223
|
-
|
|
224
|
-
// HEADER string
|
|
225
|
-
const parent = command.parentCommand;
|
|
226
|
-
let title = category;
|
|
227
|
-
if (parent) {
|
|
228
|
-
const parentdocs = parent.prepareDocs();
|
|
229
|
-
if (parentdocs.subCategory) {
|
|
230
|
-
title = parentdocs.subCategory;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
const indexFile = path.resolve(baseDir, `./${(nestedCategory || 'undefined').toLowerCase()}/_index.md`);
|
|
234
|
-
finalCategoryArr.indexPath = indexFile;
|
|
235
|
-
|
|
236
|
-
if (!_.isEqual(title.toLowerCase(), 'more') && !_.isEqual(title.toLowerCase(), 'operate on resources')) {
|
|
237
|
-
const headerString = `+++\ntitle = "${title}"\nweight = ${categoriesOrder[title.toLowerCase()] || 100}\n+++\n\n`;
|
|
238
|
-
finalCategoryArr.header = headerString;
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
finalCategoryArr.header = '';
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
let commandString = '';
|
|
245
|
-
const formattedTitle = docs.title.replace(/\s+/g, '-')
|
|
246
|
-
.toLowerCase();
|
|
247
|
-
commandString += `### [${docs.title}](${formattedTitle})\n`;
|
|
248
|
-
commandString += `\`${docs.command[0]}\`\n\n`;
|
|
249
|
-
commandString += `${docs.description}\n\n`;
|
|
250
|
-
commandString += `${docs.usage}\n\n`;
|
|
251
|
-
|
|
252
|
-
const newCmd = {};
|
|
253
|
-
finalCategoryArr.category = category;
|
|
254
|
-
newCmd.weight = await getWeight(command);
|
|
255
|
-
newCmd.content = commandString;
|
|
256
|
-
if (!finalCategoryArr.commands) {
|
|
257
|
-
finalCategoryArr.commands = [];
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
finalCategoryArr.commands.push(newCmd);
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
return finalCategoryArr;
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* updates the category main file with a specific command
|
|
269
|
-
* possible extensions are: HEADER, COMMANDS
|
|
270
|
-
*/
|
|
271
|
-
const updateCategoryFileContent = async (finalContent) => {
|
|
272
|
-
let finalCategoryFileString = '';
|
|
273
|
-
const indexFile = finalContent.indexPath;
|
|
274
|
-
if (fs.existsSync(indexFile)) {
|
|
275
|
-
finalCategoryFileString = fs.readFileSync(indexFile, 'utf8');
|
|
276
|
-
}
|
|
277
|
-
finalCategoryFileString += finalContent.header;
|
|
278
|
-
const commandArr = finalContent.commands;
|
|
279
|
-
commandArr.sort((a, b) => {
|
|
280
|
-
return a.weight - b.weight;
|
|
281
|
-
});
|
|
282
|
-
|
|
283
|
-
_.forEach(commandArr, (command) => {
|
|
284
|
-
finalCategoryFileString += command.content;
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
return finalCategoryFileString;
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
const upsertCategoryFolder = async (nestedCategory) => {
|
|
291
|
-
const dir = path.resolve(baseDir, `${(nestedCategory || 'undefined').toLowerCase()}`);
|
|
292
|
-
if (!fs.existsSync(dir)) {
|
|
293
|
-
fs.mkdirSync(dir);
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
const createAutomatedDocs = async () => {
|
|
298
|
-
|
|
299
|
-
const files = await recursive(path.resolve(__dirname, '../lib/interface/cli/commands'));
|
|
300
|
-
|
|
301
|
-
const categories = {};
|
|
302
|
-
const nestedCategories = {};
|
|
303
|
-
|
|
304
|
-
for (let i = 0; i < files.length; i++) {
|
|
305
|
-
const file = files[i];
|
|
306
|
-
|
|
307
|
-
if (!file.endsWith('.cmd.js')) {
|
|
308
|
-
continue;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
console.log(file);
|
|
312
|
-
const command = require(file);
|
|
313
|
-
|
|
314
|
-
// dont document beta commands currently
|
|
315
|
-
if (command.isBetaCommand() && !ALLOW_BETA_COMMANDS) {
|
|
316
|
-
continue;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
// document only in case category field exists and there are no sub commands under it
|
|
320
|
-
const docs = command.prepareDocs();
|
|
321
|
-
const { category } = docs;
|
|
322
|
-
if (!category || await hasSubCommands(command)) {
|
|
323
|
-
continue;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
nestedCategories[category] = await getNestedCategories(command);
|
|
327
|
-
const nestedCategory = nestedCategories[category];
|
|
328
|
-
categories[category] = await updateCategoryFileArray(nestedCategory, command, categories[category]);
|
|
329
|
-
await upsertCategoryFolder(nestedCategory);
|
|
330
|
-
await createCommandFile(nestedCategory, command);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
let categoriesFinalContent = {};
|
|
334
|
-
for (let command in categories) {
|
|
335
|
-
let f = categories[command];
|
|
336
|
-
categoriesFinalContent[f.category] = await updateCategoryFileContent(f);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
_.forEach(categoriesFinalContent, async (content, category) => {
|
|
340
|
-
await createCategoryFile(content, nestedCategories[category]);
|
|
341
|
-
});
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
const createDownloadPage = async () => {
|
|
345
|
-
const RequestOptions = {
|
|
346
|
-
url: 'https://api.github.com/repos/codefresh-io/cli/releases/latest',
|
|
347
|
-
headers: {
|
|
348
|
-
'User-Agent': 'codefresh-cli-build',
|
|
349
|
-
},
|
|
350
|
-
json: true,
|
|
351
|
-
};
|
|
352
|
-
try {
|
|
353
|
-
// response example https://docs.github.com/en/rest/releases/releases#get-the-latest-release
|
|
354
|
-
const { assets = [] } = await rp(RequestOptions);
|
|
355
|
-
|
|
356
|
-
const getDownloadUrlFromAssets = (nameRegex) => assets.find((a) => a.name.match(nameRegex))?.browser_download_url;
|
|
357
|
-
const downloadLinks = [
|
|
358
|
-
{
|
|
359
|
-
label: 'Alpine-x64',
|
|
360
|
-
downloadUrl: getDownloadUrlFromAssets(/alpine-x64/),
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
label: 'Linux-x64',
|
|
364
|
-
downloadUrl: getDownloadUrlFromAssets(/linux-x64/),
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
label: 'Macos-x64',
|
|
368
|
-
downloadUrl: getDownloadUrlFromAssets(/macos-x64/),
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
label: 'Windows-x64',
|
|
372
|
-
downloadUrl: getDownloadUrlFromAssets(/win-x64/),
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
label: 'Alpine-arm64',
|
|
376
|
-
downloadUrl: getDownloadUrlFromAssets(/alpine-arm64/),
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
label: 'Linux-arm64',
|
|
380
|
-
downloadUrl: getDownloadUrlFromAssets(/linux-arm64/),
|
|
381
|
-
},
|
|
382
|
-
];
|
|
383
|
-
|
|
384
|
-
const commandFilePath = path.resolve(baseDir, './installation/download.md');
|
|
385
|
-
const finalContent =
|
|
386
|
-
'+++\n' +
|
|
387
|
-
'title = "Download"\n' +
|
|
388
|
-
'description = "asd"\n' +
|
|
389
|
-
'date = "2017-04-24T18:36:24+02:00"\n' +
|
|
390
|
-
'weight = 40\n' +
|
|
391
|
-
'+++\n' +
|
|
392
|
-
'\n' +
|
|
393
|
-
'Navigate to <a href="https://github.com/codefresh-io/cli/releases" target="_blank">Official Releases</a>\n' +
|
|
394
|
-
'and download the binary that matches your operating system.<br>\n' +
|
|
395
|
-
'We currently support the following OS: <br>\n' +
|
|
396
|
-
'<ul>\n' +
|
|
397
|
-
downloadLinks.map(({ label, downloadUrl = 'https://github.com/codefresh-io/cli/releases' }) =>
|
|
398
|
-
` <li><a href='${downloadUrl}' target="_blank">${label}</a></li>`).join('\n') +
|
|
399
|
-
'</ul> \n' +
|
|
400
|
-
'\n' +
|
|
401
|
-
'After downloading the binary, untar or unzip it and your are good to go.<br>\n' +
|
|
402
|
-
'You can also add the binary to your system PATH environment variable so you can use it easily.\n' +
|
|
403
|
-
'\n' +
|
|
404
|
-
'If your operating system is missing please feel free to open us an issue in our <a href="https://github.com/codefresh-io/cli/issues" target="_blank">Github repository</a>.\n';
|
|
405
|
-
fs.writeFileSync(commandFilePath, finalContent);
|
|
406
|
-
} catch (err) {
|
|
407
|
-
throw new CFError(err);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
const generateDocs = async () => {
|
|
413
|
-
await deleteTempFolder();
|
|
414
|
-
await copyTemplateToTmp();
|
|
415
|
-
await createAutomatedDocs();
|
|
416
|
-
await createDownloadPage();
|
|
417
|
-
};
|
|
418
|
-
|
|
419
|
-
const main = async () => {
|
|
420
|
-
try {
|
|
421
|
-
await generateDocs();
|
|
422
|
-
} catch (err) {
|
|
423
|
-
console.error(err.stack);
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
if (require.main === module) {
|
|
428
|
-
main();
|
|
429
|
-
} else {
|
|
430
|
-
module.exports = generateDocs;
|
|
431
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<center>
|
|
2
|
-
<!-- Place this tag where you want the button to render. -->
|
|
3
|
-
<a class="github-button" href="https://github.com/codefresh-io/cli/releases" data-icon="octicon-cloud-download" aria-label="Download vjeantet/hugo-theme-docdock on GitHub">Download</a>
|
|
4
|
-
|
|
5
|
-
<!-- Place this tag where you want the button to render. -->
|
|
6
|
-
<a class="github-button" href="https://github.com/codefresh-io/cli" data-icon="octicon-star" data-show-count="false" aria-label="Star vjeantet/hugo-theme-docdock on GitHub">Star</a>
|
|
7
|
-
|
|
8
|
-
<!-- Place this tag where you want the button to render. -->
|
|
9
|
-
<a class="github-button" href="https://github.com/codefresh-io/cli/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork vjeantet/hugo-theme-docdock on GitHub">Fork</a>
|
|
10
|
-
|
|
11
|
-
</center>
|
|
12
|
-
<!-- Place this tag in your head or just before your close body tag. -->
|
|
13
|
-
<script async defer src="https://buttons.github.io/buttons.js"></script>
|