Merge pull request #1999 from dolthub/zachmu/845

Removed hard-coded html in docs for sql-server command
This commit is contained in:
Zach Musgrave
2021-08-11 11:21:47 -07:00
committed by GitHub

View File

@@ -47,15 +47,14 @@ const (
var sqlServerDocs = cli.CommandDocumentationContent{
ShortDesc: "Start a MySQL-compatible server.",
LongDesc: `By default, starts a MySQL-compatible server which allows only one user connection at a time to the dolt repository in the current directory. Any edits made through this server will be automatically reflected in the working set. This behavior can be modified using a yaml configuration file passed to the server via {{.EmphasisLeft}}--config <file>{{.EmphasisRight}}, or by using the supported switches and flags to configure the server directly on the command line (If {{.EmphasisLeft}}--config <file>{{.EmphasisRight}} is provided all other command line arguments are ignored). This is an example yaml configuration file showing all supported items and their default values:
<div class="gatsby-highlight" data-language="text">
<pre class="By default, starts a MySQL-compatible server whilanguage-text">
<code class="language-text">
` + serverConfigAsYAMLConfig(DefaultServerConfig()).String() + `
</code>
</pre>
</div>
LongDesc: "By default, starts a MySQL-compatible server on the dolt database in the current directory. " +
"Databases are named after the directories they appear in, with all non-alphanumeric characters replaced by the _ character. " +
"Parameters can be specified using a yaml configuration file passed to the server via " +
"{{.EmphasisLeft}}--config <file>{{.EmphasisRight}}, or by using the supported switches and flags to configure " +
"the server directly on the command line. If {{.EmphasisLeft}}--config <file>{{.EmphasisRight}} is provided all" +
" other command line arguments are ignored.\n\nThis is an example yaml configuration file showing all supported" +
" items and their default values:\n\n" +
serverConfigAsYAMLConfig(DefaultServerConfig()).String() + "\n\n" + `
SUPPORTED CONFIG FILE FIELDS:
{{.EmphasisLeft}}vlog_level{{.EmphasisRight}} - Level of logging provided. Options are: {{.EmphasisLeft}}trace{{.EmphasisRight}}, {{.EmphasisLeft}}debug{{.EmphasisRight}}, {{.EmphasisLeft}}info{{.EmphasisRight}}, {{.EmphasisLeft}}warning{{.EmphasisRight}}, {{.EmphasisLeft}}error{{.EmphasisRight}}, and {{.EmphasisLeft}}fatal{{.EmphasisRight}}.