diff --git a/.gitignore b/.gitignore index 39959f6a9..8bd292ac6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vscode example/example +example/cmd/_test_files/*.txt caraparse/caraparse docs/book diff --git a/example/cmd/_test_files/-_minus_prefix.txt b/example/cmd/_test_files/-_minus_prefix.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/ampersand_&.txt b/example/cmd/_test_files/ampersand_&.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/angle-brackets_<>.txt b/example/cmd/_test_files/angle-brackets_<>.txt deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/backslash2_\\n.txt" "b/example/cmd/_test_files/backslash2_\\n.txt" deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/backslash3_\\t.txt" "b/example/cmd/_test_files/backslash3_\\t.txt" deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/backslash_\\.txt" "b/example/cmd/_test_files/backslash_\\.txt" deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/backtick_`.txt b/example/cmd/_test_files/backtick_`.txt deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/both_quotes_'\".txt" "b/example/cmd/_test_files/both_quotes_'\".txt" deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/colon_:.txt b/example/cmd/_test_files/colon_:.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/curly-brackets_{}.txt b/example/cmd/_test_files/curly-brackets_{}.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/dollar_$.txt b/example/cmd/_test_files/dollar_$.txt deleted file mode 100644 index e69de29bb..000000000 diff --git "a/example/cmd/_test_files/double-quote_\".txt" "b/example/cmd/_test_files/double-quote_\".txt" deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/files_linux.go b/example/cmd/_test_files/files_linux.go new file mode 100644 index 000000000..0be667011 --- /dev/null +++ b/example/cmd/_test_files/files_linux.go @@ -0,0 +1,24 @@ +package testfiles + +//go:generate touch -- -_minus_prefix.txt +//go:generate touch -- ampersand_&.txt +//go:generate touch -- angle-brackets_<>.txt +//go:generate touch -- backslash2_\n.txt +//go:generate touch -- backslash3_\t.txt +//go:generate touch -- backslash_\.txt +//go:generate touch -- backtick_`.txt +//go:generate touch -- both_quotes_'".txt +//go:generate touch -- colon_:.txt +//go:generate touch -- curly-brackets_{}.txt +//go:generate touch -- dollar_$.txt +//go:generate touch -- double-quote_".txt +//go:generate touch -- hash_#.txt +//go:generate touch -- pipe_|.txt +//go:generate touch -- question_?.txt +//go:generate touch -- round-brackets_().txt +//go:generate touch -- semicolon_;.txt +//go:generate touch -- single-quote_'.txt +//go:generate touch -- "space_ .txt" +//go:generate touch -- square-brackets_[].txt +//go:generate touch -- "star_*.txt" +//go:generate touch -- ~_tilde_prefix.txt diff --git a/example/cmd/_test_files/go.mod b/example/cmd/_test_files/go.mod index c5d9e26f3..a1d686a86 100644 --- a/example/cmd/_test_files/go.mod +++ b/example/cmd/_test_files/go.mod @@ -1 +1,3 @@ -# fix go mod invalid char error: https://github.com/golang/go/issues/26672 +module github.com/rsteube/carapace/example/_test_files + +// fix go mod invalid char error: https://github.com/golang/go/issues/26672 diff --git a/example/cmd/_test_files/hash_#.txt b/example/cmd/_test_files/hash_#.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/pipe_|.txt b/example/cmd/_test_files/pipe_|.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/question_?.txt b/example/cmd/_test_files/question_?.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/round-brackets_().txt b/example/cmd/_test_files/round-brackets_().txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/semicolon_;.txt b/example/cmd/_test_files/semicolon_;.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/single-quote_'.txt b/example/cmd/_test_files/single-quote_'.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/space_ .txt b/example/cmd/_test_files/space_ .txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/square-brackets_[].txt b/example/cmd/_test_files/square-brackets_[].txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/star_*.txt b/example/cmd/_test_files/star_*.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/example/cmd/_test_files/~_tilde_prefix.txt b/example/cmd/_test_files/~_tilde_prefix.txt deleted file mode 100644 index e69de29bb..000000000