@@ -71,7 +71,7 @@ func Echo() *cobra.Command {
71
71
Aliases : []string {"say" },
72
72
Short : "Echo anything to the screen" ,
73
73
Long : "an utterly useless command for testing" ,
74
- Example : " # Example with intro text\n atlas command no intro text\n " ,
74
+ Example : " # Example with intro text\n atlas command no intro text\n " ,
75
75
Annotations : map [string ]string {
76
76
"string to printDesc" : "A string to print" ,
77
77
"test paramDesc" : "just for testing" ,
@@ -129,10 +129,9 @@ func TestGenDocs(t *testing.T) {
129
129
output := buf .String ()
130
130
131
131
checkStringContains (t , output , Echo ().Long )
132
- checkStringContains (t , output , `.. code-block::
133
-
134
- # Example with intro text
135
- atlas command no intro text
132
+ checkStringContains (t , output , `
133
+ # Example with intro text
134
+ atlas command no intro text
136
135
` )
137
136
checkStringContains (t , output , "boolone" )
138
137
checkStringContains (t , output , "rootflag" )
@@ -158,10 +157,9 @@ func TestGenDocsNoHiddenParents(t *testing.T) {
158
157
output := buf .String ()
159
158
160
159
checkStringContains (t , output , Echo ().Long )
161
- checkStringContains (t , output , `.. code-block::
162
-
163
- # Example with intro text
164
- atlas command no intro text
160
+ checkStringContains (t , output , `
161
+ # Example with intro text
162
+ atlas command no intro text
165
163
` )
166
164
checkStringContains (t , output , "boolone" )
167
165
checkStringOmits (t , output , "rootflag" )
0 commit comments