Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
outline: Make reading source from stdin uniform across operating syst…
…ems (#760) * outline: Make reading source from stdin uniform across operating systems Let's say that there is an IDE plugin that calls `gingko outline`. It will likely pipe the document contents via stdin. And the IDE will likely run on multiple operating systems. With the `-` alias for stdin, the plugin can use the same ginkgo command on every operating system. This alias is common, but not ubiquituous. Users can continue to use operating system-specific filenames for stdin. Example: ```shell > cat outline/_testdata/normal_test.go | ./ginkgo outline -format=indent - ``` ```shell Name,Text,Start,End,Spec,Focused,Pending Describe,NormalFixture,116,605,false,false,false Describe,normal,152,244,false,false,false It,normal,182,240,true,false,false By,step 1,207,219,false,false,false By,step 2,223,235,false,false,false Context,normal,247,307,false,false,false It,normal,276,303,true,false,false When,normal,310,367,false,false,false It,normal,336,363,true,false,false It,normal,370,396,true,false,false Specify,normal,399,430,true,false,false Measure,normal,433,480,true,false,false DescribeTable,normal,483,541,false,false,false Entry,normal,522,537,true,false,false DescribeTable,normal,544,602,false,false,false Entry,normal,583,598,true,false,false ``` * outline: Remove duplicate definition of the short usage message
- Loading branch information