Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated documentation #62

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ func main() {
var _, b, _, _ = runtime.Caller(0)
var dir = filepath.Dir(b)
fmt.Println("Generating documentation...")
err := doc.GenMarkdownTree(cmd.NewRootCmd(), dir)
c := cmd.NewRootCmd()
c.InitDefaultCompletionCmd()
c.InitDefaultVersionFlag()
err := doc.GenMarkdownTree(c, dir)
if err != nil {
_, _ = fmt.Fprintln(os.Stderr, err)
os.Exit(1)
Expand Down
3 changes: 2 additions & 1 deletion docs/veidemannctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ veidemannctl controls the Veidemann web crawler
--log-level string set log level, available levels are "panic", "fatal", "error", "warn", "info", "debug" and "trace" (default "info")
--server string The address of the Veidemann server to use
--server-name-override string If set, it will override the virtual host name of authority (e.g. :authority header field) in requests
-v, --version version for veidemannctl
```

### SEE ALSO

* [veidemannctl abort](veidemannctl_abort.md) - Abort crawl executions
* [veidemannctl abortjobexecution](veidemannctl_abortjobexecution.md) - Abort job executions
* [veidemannctl activeroles](veidemannctl_activeroles.md) - Get the active roles for the currently logged in user
* [veidemannctl completion](veidemannctl_completion.md) - Generate the autocompletion script for the specified shell
* [veidemannctl config](veidemannctl_config.md) - Modify or view configuration files
* [veidemannctl create](veidemannctl_create.md) - Create or update config objects
* [veidemannctl delete](veidemannctl_delete.md) - Delete config objects
Expand All @@ -40,5 +42,4 @@ veidemannctl controls the Veidemann web crawler
* [veidemannctl status](veidemannctl_status.md) - Display crawler status
* [veidemannctl unpause](veidemannctl_unpause.md) - Request crawler to unpause
* [veidemannctl update](veidemannctl_update.md) - Update fields of config objects of the same kind
* [veidemannctl version](veidemannctl_version.md) - Print the client version information

2 changes: 1 addition & 1 deletion docs/veidemannctl_abort.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Abort crawl executions

### Synopsis

Abort one or many crawl executions.
Abort one or more crawl executions.

```
veidemannctl abort CRAWL-EXECUTION-ID ... [flags]
Expand Down
2 changes: 1 addition & 1 deletion docs/veidemannctl_abortjobexecution.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Abort job executions

### Synopsis

Abort one or many job executions.
Abort one or more job executions.

```
veidemannctl abortjobexecution JOB-EXECUTION-ID ... [flags]
Expand Down
37 changes: 37 additions & 0 deletions docs/veidemannctl_completion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## veidemannctl completion

Generate the autocompletion script for the specified shell

### Synopsis

Generate the autocompletion script for veidemannctl for the specified shell.
See each sub-command's help for details on how to use the generated script.


### Options

```
-h, --help help for completion
```

### Options inherited from parent commands

```
--api-key string If set, it will be used as the bearer token for authentication
--config string Path to the config file to use (By default configuration file is stored under $HOME/.veidemann/contexts/
--context string The name of the context to use
--log-caller include information about caller in log output
--log-format string set log format, available formats are: "pretty" or "json" (default "pretty")
--log-level string set log level, available levels are "panic", "fatal", "error", "warn", "info", "debug" and "trace" (default "info")
--server string The address of the Veidemann server to use
--server-name-override string If set, it will override the virtual host name of authority (e.g. :authority header field) in requests
```

### SEE ALSO

* [veidemannctl](veidemannctl.md) - veidemannctl controls the Veidemann web crawler
* [veidemannctl completion bash](veidemannctl_completion_bash.md) - Generate the autocompletion script for bash
* [veidemannctl completion fish](veidemannctl_completion_fish.md) - Generate the autocompletion script for fish
* [veidemannctl completion powershell](veidemannctl_completion_powershell.md) - Generate the autocompletion script for powershell
* [veidemannctl completion zsh](veidemannctl_completion_zsh.md) - Generate the autocompletion script for zsh

56 changes: 56 additions & 0 deletions docs/veidemannctl_completion_bash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
## veidemannctl completion bash

Generate the autocompletion script for bash

### Synopsis

Generate the autocompletion script for the bash shell.

This script depends on the 'bash-completion' package.
If it is not installed already, you can install it via your OS's package manager.

To load completions in your current shell session:

source <(veidemannctl completion bash)

To load completions for every new session, execute once:

#### Linux:

veidemannctl completion bash > /etc/bash_completion.d/veidemannctl

#### macOS:

veidemannctl completion bash > $(brew --prefix)/etc/bash_completion.d/veidemannctl

You will need to start a new shell for this setup to take effect.


```
veidemannctl completion bash
```

### Options

```
-h, --help help for bash
--no-descriptions disable completion descriptions
```

### Options inherited from parent commands

```
--api-key string If set, it will be used as the bearer token for authentication
--config string Path to the config file to use (By default configuration file is stored under $HOME/.veidemann/contexts/
--context string The name of the context to use
--log-caller include information about caller in log output
--log-format string set log format, available formats are: "pretty" or "json" (default "pretty")
--log-level string set log level, available levels are "panic", "fatal", "error", "warn", "info", "debug" and "trace" (default "info")
--server string The address of the Veidemann server to use
--server-name-override string If set, it will override the virtual host name of authority (e.g. :authority header field) in requests
```

### SEE ALSO

* [veidemannctl completion](veidemannctl_completion.md) - Generate the autocompletion script for the specified shell

47 changes: 47 additions & 0 deletions docs/veidemannctl_completion_fish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
## veidemannctl completion fish

Generate the autocompletion script for fish

### Synopsis

Generate the autocompletion script for the fish shell.

To load completions in your current shell session:

veidemannctl completion fish | source

To load completions for every new session, execute once:

veidemannctl completion fish > ~/.config/fish/completions/veidemannctl.fish

You will need to start a new shell for this setup to take effect.


```
veidemannctl completion fish [flags]
```

### Options

```
-h, --help help for fish
--no-descriptions disable completion descriptions
```

### Options inherited from parent commands

```
--api-key string If set, it will be used as the bearer token for authentication
--config string Path to the config file to use (By default configuration file is stored under $HOME/.veidemann/contexts/
--context string The name of the context to use
--log-caller include information about caller in log output
--log-format string set log format, available formats are: "pretty" or "json" (default "pretty")
--log-level string set log level, available levels are "panic", "fatal", "error", "warn", "info", "debug" and "trace" (default "info")
--server string The address of the Veidemann server to use
--server-name-override string If set, it will override the virtual host name of authority (e.g. :authority header field) in requests
```

### SEE ALSO

* [veidemannctl completion](veidemannctl_completion.md) - Generate the autocompletion script for the specified shell

44 changes: 44 additions & 0 deletions docs/veidemannctl_completion_powershell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## veidemannctl completion powershell

Generate the autocompletion script for powershell

### Synopsis

Generate the autocompletion script for powershell.

To load completions in your current shell session:

veidemannctl completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command
to your powershell profile.


```
veidemannctl completion powershell [flags]
```

### Options

```
-h, --help help for powershell
--no-descriptions disable completion descriptions
```

### Options inherited from parent commands

```
--api-key string If set, it will be used as the bearer token for authentication
--config string Path to the config file to use (By default configuration file is stored under $HOME/.veidemann/contexts/
--context string The name of the context to use
--log-caller include information about caller in log output
--log-format string set log format, available formats are: "pretty" or "json" (default "pretty")
--log-level string set log level, available levels are "panic", "fatal", "error", "warn", "info", "debug" and "trace" (default "info")
--server string The address of the Veidemann server to use
--server-name-override string If set, it will override the virtual host name of authority (e.g. :authority header field) in requests
```

### SEE ALSO

* [veidemannctl completion](veidemannctl_completion.md) - Generate the autocompletion script for the specified shell

58 changes: 58 additions & 0 deletions docs/veidemannctl_completion_zsh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
## veidemannctl completion zsh

Generate the autocompletion script for zsh

### Synopsis

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need
to enable it. You can execute the following once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

source <(veidemannctl completion zsh)

To load completions for every new session, execute once:

#### Linux:

veidemannctl completion zsh > "${fpath[1]}/_veidemannctl"

#### macOS:

veidemannctl completion zsh > $(brew --prefix)/share/zsh/site-functions/_veidemannctl

You will need to start a new shell for this setup to take effect.


```
veidemannctl completion zsh [flags]
```

### Options

```
-h, --help help for zsh
--no-descriptions disable completion descriptions
```

### Options inherited from parent commands

```
--api-key string If set, it will be used as the bearer token for authentication
--config string Path to the config file to use (By default configuration file is stored under $HOME/.veidemann/contexts/
--context string The name of the context to use
--log-caller include information about caller in log output
--log-format string set log format, available formats are: "pretty" or "json" (default "pretty")
--log-level string set log level, available levels are "panic", "fatal", "error", "warn", "info", "debug" and "trace" (default "info")
--server string The address of the Veidemann server to use
--server-name-override string If set, it will override the virtual host name of authority (e.g. :authority header field) in requests
```

### SEE ALSO

* [veidemannctl completion](veidemannctl_completion.md) - Generate the autocompletion script for the specified shell

4 changes: 2 additions & 2 deletions docs/veidemannctl_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Examples:
veidemannctl delete seed 407a9600-4f25-4f17-8cff-ee1b8ee950f6

```
veidemannctl delete KIND (ID ...) [flags]
veidemannctl delete KIND ID ... [flags]
```

### Options
Expand All @@ -32,7 +32,7 @@ veidemannctl delete KIND (ID ...) [flags]
--dry-run Set to false to execute delete (default true)
-q, --filter stringArray Delete objects by field (i.e. meta.description=foo)
-h, --help help for delete
-l, --label string Delete objects by label (<type>:<value> | <value>)
-l, --label string Delete objects by label {TYPE:VALUE | VALUE}
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/veidemannctl_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ veidemannctl get KIND [ID ...] [flags]
-f, --filename string Filename to write to
-q, --filter stringArray Filter objects by field (i.e. meta.description=foo)
-h, --help help for get
-l, --label string List objects by label (<type>:<value> | <value>)
-l, --label string List objects by label {TYPE:VALUE | VALUE}
-n, --name string List objects by name (accepts regular expressions)
-o, --output string Output format (table|wide|json|yaml|template|template-file) (default "table")
-p, --page int32 The page number
Expand Down
2 changes: 1 addition & 1 deletion docs/veidemannctl_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ veidemannctl update seed -n "https://www.gwpda.org/" -u seed.jobRef=crawlJob:e46
```
-q, --filter stringArray Filter objects by field (i.e. meta.description=foo)
-h, --help help for update
-l, --label string Filter objects by label (<type>:<value> | <value>)
-l, --label string Filter objects by label {TYPE:VALUE | VALUE}
-s, --limit int32 Limit the number of objects to update. 0 = no limit
-n, --name string Filter objects by name (accepts regular expressions)
-u, --update-field string Which field to update (i.e. meta.description=foo)
Expand Down