@@ -29,9 +29,9 @@ Additional flags allow you to control polling behavior, repository selection, au
2929 Examples : []cli.Example {
3030 {
3131 Codes : []cli.Code {
32- {Title : "Cli " , Source : "--providers-git pullInterval=10s,tempDir=/tempdir" },
33- {Title : "Env" , Source : "MOKAPI_GIT =pullInterval=10s,tempDir=/tempdir" },
34- {Title : "File" , Source : "providers:\n git:\n pullInterval: 10s\n tempDir: /tempdir" , Type : "yaml" },
32+ {Title : "CLI " , Source : "--providers-git pullInterval=10s,tempDir=/tempdir" },
33+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT =pullInterval=10s,tempDir=/tempdir" },
34+ {Title : "File" , Source : "providers:\n git:\n pullInterval: 10s\n tempDir: /tempdir" , Language : "yaml" },
3535 },
3636 },
3737 },
@@ -44,9 +44,9 @@ This option can be used multiple times to define additional repositories. Each r
4444 Examples : []cli.Example {
4545 {
4646 Codes : []cli.Code {
47- {Title : "Cli " , Source : "--providers-git-url https://github.com/foo/foo.git" },
48- {Title : "Env" , Source : "MOKAPI_GIT_URL =https://github.com/foo/foo.git" },
49- {Title : "File" , Source : "providers:\n git:\n urls: https://github.com/foo/foo.git" , Type : "yaml" },
47+ {Title : "CLI " , Source : "--providers-git-url https://github.com/foo/foo.git" },
48+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_URL =https://github.com/foo/foo.git" },
49+ {Title : "File" , Source : "providers:\n git:\n urls: https://github.com/foo/foo.git" , Language : "yaml" },
5050 },
5151 },
5252 },
@@ -59,9 +59,9 @@ This option is equivalent to using providers-git-url multiple times, but allows
5959 Examples : []cli.Example {
6060 {
6161 Codes : []cli.Code {
62- {Title : "Cli " , Source : "--providers-git-urls https://github.com/foo/foo.git https://github.com/bar/bar.git" },
63- {Title : "Env" , Source : "MOKAPI_GIT_URLS =https://github.com/foo/foo.git https://github.com/bar/bar.git" },
64- {Title : "File" , Source : "providers:\n git:\n urls: [https://github.com/foo/foo.git https://github.com/bar/bar.git]" , Type : "yaml" },
62+ {Title : "CLI " , Source : "--providers-git-urls https://github.com/foo/foo.git https://github.com/bar/bar.git" },
63+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_URLS =https://github.com/foo/foo.git https://github.com/bar/bar.git" },
64+ {Title : "File" , Source : "providers:\n git:\n urls: [https://github.com/foo/foo.git https://github.com/bar/bar.git]" , Language : "yaml" },
6565 },
6666 },
6767 },
@@ -74,8 +74,8 @@ The value must be a valid duration string, such as "30s", "1m", or "5m". Shorter
7474 Examples : []cli.Example {
7575 {
7676 Codes : []cli.Code {
77- {Title : "Cli " , Source : "--providers-git-pull-interval 10s" },
78- {Title : "Env" , Source : "MOKAPI_GIT_PULL_INTERVAL =10s" },
77+ {Title : "CLI " , Source : "--providers-git-pull-interval 10s" },
78+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_PULL_INTERVAL =10s" },
7979 {Title : "File" , Source : "providers:\n git:\n pullInterval: 10s" },
8080 },
8181 },
@@ -89,9 +89,9 @@ If not set, Mokapi uses a default temporary directory. Setting this option can b
8989 Examples : []cli.Example {
9090 {
9191 Codes : []cli.Code {
92- {Title : "Cli " , Source : "--providers-git-temp-dir /tempdir" },
93- {Title : "Env" , Source : "MOKAPI_GIT_TEMP_DIR =/tempdir" },
94- {Title : "File" , Source : "providers:\n git:\n tempDir: /tempdir" , Type : "yaml" },
92+ {Title : "CLI " , Source : "--providers-git-temp-dir /tempdir" },
93+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_TEMP_DIR =/tempdir" },
94+ {Title : "File" , Source : "providers:\n git:\n tempDir: /tempdir" , Language : "yaml" },
9595 },
9696 },
9797 },
@@ -104,9 +104,9 @@ This option allows defining repository-specific settings such as allowed files,
104104 Examples : []cli.Example {
105105 {
106106 Codes : []cli.Code {
107- {Title : "Cli " , Source : "--providers-git-repository url=https://github.com/foo/foo.git,include=*.json" },
108- {Title : "Env" , Source : "MOKAPI_GIT_REPOSITORY =url=https://github.com/foo/foo.git,tempDir=/tempdir" },
109- {Title : "File" , Source : "providers:\n git:\n repositories:\n - url: https://github.com/foo/foo.git\n include: *.json" , Type : "yaml" },
107+ {Title : "CLI " , Source : "--providers-git-repository url=https://github.com/foo/foo.git,include=*.json" },
108+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_REPOSITORY =url=https://github.com/foo/foo.git,tempDir=/tempdir" },
109+ {Title : "File" , Source : "providers:\n git:\n repositories:\n - url: https://github.com/foo/foo.git\n include: *.json" , Language : "yaml" },
110110 },
111111 },
112112 },
@@ -119,9 +119,9 @@ This option is equivalent to using providers-git-repository multiple times, but
119119 Examples : []cli.Example {
120120 {
121121 Codes : []cli.Code {
122- {Title : "Cli " , Source : "--providers-git-repositories url=https://github.com/foo/foo.git,include=*.json url=https://github.com/bar/bar.git,include=*.yaml" },
123- {Title : "Env" , Source : "MOKAPI_GIT_REPOSITORIES =url=https://github.com/foo/foo.git,include=*.json url=https://github.com/bar/bar.git,include=*.yaml" },
124- {Title : "File" , Source : "providers:\n git:\n repositories:\n - url: https://github.com/foo/foo.git\n include: [*.json]\n - url: https://github.com/bar/bar.git\n include: [*.yaml]" , Type : "yaml" },
122+ {Title : "CLI " , Source : "--providers-git-repositories url=https://github.com/foo/foo.git,include=*.json url=https://github.com/bar/bar.git,include=*.yaml" },
123+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_REPOSITORIES =url=https://github.com/foo/foo.git,include=*.json url=https://github.com/bar/bar.git,include=*.yaml" },
124+ {Title : "File" , Source : "providers:\n git:\n repositories:\n - url: https://github.com/foo/foo.git\n include: [*.json]\n - url: https://github.com/bar/bar.git\n include: [*.yaml]" , Language : "yaml" },
125125 },
126126 },
127127 },
@@ -134,9 +134,9 @@ This option is mainly intended for advanced or programmatic configurations where
134134 Examples : []cli.Example {
135135 {
136136 Codes : []cli.Code {
137- {Title : "Cli " , Source : "--providers-git-repositories[0] url=https://github.com/foo/foo.git,include=*.json" },
138- {Title : "Env" , Source : "MOKAPI_GIT_REPOSITORIES [0]=url=https://github.com/foo/foo.git,include=*.json" },
139- {Title : "File" , Source : "providers:\n git:\n repositories:\n - url: https://github.com/foo/foo.git\n include: [*.json]" , Type : "yaml" },
137+ {Title : "CLI " , Source : "--providers-git-repositories[0] url=https://github.com/foo/foo.git,include=*.json" },
138+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_REPOSITORIES [0]=url=https://github.com/foo/foo.git,include=*.json" },
139+ {Title : "File" , Source : "providers:\n git:\n repositories:\n - url: https://github.com/foo/foo.git\n include: [*.json]" , Language : "yaml" },
140140 },
141141 },
142142 },
@@ -149,9 +149,9 @@ The repository is cloned and used as a source for configuration files.`,
149149 Examples : []cli.Example {
150150 {
151151 Codes : []cli.Code {
152- {Title : "Cli " , Source : "--providers-git-repositories[0]-url https://github.com/foo/foo.git" },
153- {Title : "Env" , Source : "MOKAPI_GIT_REPOSITORIES [0]_URL=https://github.com/foo/foo.git" },
154- {Title : "File" , Source : "providers:\n git:\n repositories:\n - url: https://github.com/foo/foo.git" , Type : "yaml" },
152+ {Title : "CLI " , Source : "--providers-git-repositories[0]-url https://github.com/foo/foo.git" },
153+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_REPOSITORIES [0]_URL=https://github.com/foo/foo.git" },
154+ {Title : "File" , Source : "providers:\n git:\n repositories:\n - url: https://github.com/foo/foo.git" , Language : "yaml" },
155155 },
156156 },
157157 },
@@ -164,9 +164,9 @@ Only the specified files are considered. This option can be used multiple times
164164 Examples : []cli.Example {
165165 {
166166 Codes : []cli.Code {
167- {Title : "Cli " , Source : "--providers-git-repositories[0]-file mokapi/api.json" },
168- {Title : "Env" , Source : "MOKAPI_GIT_REPOSITORIES [0]_FILE=mokapi/api.json" },
169- {Title : "File" , Source : "providers:\n git:\n repositories:\n - files: [mokapi/api.json]" , Type : "yaml" },
167+ {Title : "CLI " , Source : "--providers-git-repositories[0]-file mokapi/api.json" },
168+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_REPOSITORIES [0]_FILE=mokapi/api.json" },
169+ {Title : "File" , Source : "providers:\n git:\n repositories:\n - files: [mokapi/api.json]" , Language : "yaml" },
170170 },
171171 },
172172 },
@@ -179,9 +179,9 @@ This option is equivalent to using providers-git-repositories[<index>]-file mult
179179 Examples : []cli.Example {
180180 {
181181 Codes : []cli.Code {
182- {Title : "Cli " , Source : "--providers-git-repositories[0]-files mokapi/api.json mokapi/handler.js" },
183- {Title : "Env" , Source : "MOKAPI_GIT_REPOSITORIES [0]_FILES=mokapi/api.json mokapi/handler.js" },
184- {Title : "File" , Source : "providers:\n git:\n repositories:\n - files: [mokapi/api.json mokapi/handler.js]" , Type : "yaml" },
182+ {Title : "CLI " , Source : "--providers-git-repositories[0]-files mokapi/api.json mokapi/handler.js" },
183+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_REPOSITORIES [0]_FILES=mokapi/api.json mokapi/handler.js" },
184+ {Title : "File" , Source : "providers:\n git:\n repositories:\n - files: [mokapi/api.json mokapi/handler.js]" , Language : "yaml" },
185185 },
186186 },
187187 },
@@ -194,9 +194,9 @@ If at least one include pattern is specified, only files matching one of the pat
194194 Examples : []cli.Example {
195195 {
196196 Codes : []cli.Code {
197- {Title : "Cli " , Source : "--providers-git-repositories[0]-include mokapi/**/*.json" },
198- {Title : "Env" , Source : "MOKAPI_GIT_REPOSITORIES [0]_INCLUDE=mokapi/**/*.json" },
199- {Title : "File" , Source : "providers:\n git:\n repositories:\n - includes: [mokapi/**/*.json]" , Type : "yaml" },
197+ {Title : "CLI " , Source : "--providers-git-repositories[0]-include mokapi/**/*.json" },
198+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_REPOSITORIES [0]_INCLUDE=mokapi/**/*.json" },
199+ {Title : "File" , Source : "providers:\n git:\n repositories:\n - includes: [mokapi/**/*.json]" , Language : "yaml" },
200200 },
201201 },
202202 },
@@ -209,9 +209,9 @@ This option allows accessing private repositories hosted on GitHub by using cred
209209 Examples : []cli.Example {
210210 {
211211 Codes : []cli.Code {
212- {Title : "Cli " , Source : "--providers-git-repositories[0]-auth-github appId=12345,installationId=123456789,privateKey=2024-2-25.private-key.pem" },
213- {Title : "Env" , Source : "MOKAPI_GIT_REPOSITORIES [0]_AUTH_GITHUB=appId=12345,installationId=123456789,privateKey=2024-2-25.private-key.pem" },
214- {Title : "File" , Source : "providers:\n git:\n repositories:\n - auth:\n github:\n appId: 12345\n installationId: 12345\n privateKey: 2024-2-25.private-key.pem" , Type : "yaml" },
212+ {Title : "CLI " , Source : "--providers-git-repositories[0]-auth-github appId=12345,installationId=123456789,privateKey=2024-2-25.private-key.pem" },
213+ {Title : "Env" , Source : "MOKAPI_PROVIDERS_GIT_REPOSITORIES [0]_AUTH_GITHUB=appId=12345,installationId=123456789,privateKey=2024-2-25.private-key.pem" },
214+ {Title : "File" , Source : "providers:\n git:\n repositories:\n - auth:\n github:\n appId: 12345\n installationId: 12345\n privateKey: 2024-2-25.private-key.pem" , Language : "yaml" },
215215 },
216216 },
217217 },
0 commit comments