Fix misspell error

This commit is contained in:
c-bata 2018-02-19 23:16:46 +09:00
parent 33684a5d5f
commit 8c7b61cef8

View File

@ -66,20 +66,20 @@ func TestFormatShortSuggestion(t *testing.T) {
},
{
in: []Suggest{
{Text: "--all-namespaces", Description: "If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace."},
{Text: "--allow-missing-template-keys", Description: "If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats."},
{Text: "--export", Description: "If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information."},
{Text: "-f", Description: "Filename, directory, or URL to files identifying the resource to get from a server."},
{Text: "--filename", Description: "Filename, directory, or URL to files identifying the resource to get from a server."},
{Text: "--include-extended-apis", Description: "If true, include definitions of new APIs via calls to the API server. [default true]"},
{Text: "--all-namespaces", Description: "-------------------------------------------------------------------------------------------------------------------------------------------"},
{Text: "--allow-missing-template-keys", Description: "-----------------------------------------------------------------------------------------------------------------------------------------------"},
{Text: "--export", Description: "----------------------------------------------------------------------------------------------------------"},
{Text: "-f", Description: "-----------------------------------------------------------------------------------"},
{Text: "--filename", Description: "-----------------------------------------------------------------------------------"},
{Text: "--include-extended-apis", Description: "------------------------------------------------------------------------------------"},
},
expected: []Suggest{
{Text: " --all-namespaces ", Description: " If present, li... "},
{Text: " --allow-missing-template-keys ", Description: " If true, ignor... "},
{Text: " --export ", Description: " If true, use '... "},
{Text: " -f ", Description: " Filename, dire... "},
{Text: " --filename ", Description: " Filename, dire... "},
{Text: " --include-extended-apis ", Description: " If true, inclu... "},
{Text: " --all-namespaces ", Description: " --------------... "},
{Text: " --allow-missing-template-keys ", Description: " --------------... "},
{Text: " --export ", Description: " --------------... "},
{Text: " -f ", Description: " --------------... "},
{Text: " --filename ", Description: " --------------... "},
{Text: " --include-extended-apis ", Description: " --------------... "},
},
max: 50,
exWidth: len(" --include-extended-apis " + " If true, includ..."),