Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed Nov 2, 2023
1 parent 37fc676 commit 629a98b
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 54 deletions.
42 changes: 24 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,24 +235,30 @@ k8s_resources

```console
$ cat testdata/sample6.md | gtree output
a
├── i
│ ├── u
│ │ ├── k
│ │ └── kk
│ └── t
├── e
│ └── o
└── g
a
├── i
│ ├── u
│ │ ├── k
│ │ └── kk
│ └── t
├── e
│ └── o
└── g
Artiodactyla
├── Artiofabula
│ ├── Cetruminantia
│ │ ├── Whippomorpha
│ │ │ ├── Hippopotamidae
│ │ │ └── Cetacea
│ │ └── Ruminantia
│ └── Suina
└── Tylopoda
Carnivora
├── Feliformia
└── Caniformia
├── Canidae
└── Arctoidea
├── Ursidae
└── x
├── Pinnipedia
└── Musteloidea
├── Ailuridae
└── x
├── Mephitidae
└── x
├── Procyonidae
└── Mustelidae
```

#### Output JSON
Expand Down
42 changes: 24 additions & 18 deletions testdata/sample6.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
- a
- i
- u
- k
- kk
- t
- e
- o
- g
- a
- i
- u
- k
- kk
- t
- e
- o
- g
- Artiodactyla
- Artiofabula
- Cetruminantia
- Whippomorpha
- Hippopotamidae
- Cetacea
- Ruminantia
- Suina
- Tylopoda
- Carnivora
- Feliformia
- Caniformia
- Canidae
- Arctoidea
- Ursidae
- x
- Pinnipedia
- Musteloidea
- Ailuridae
- x
- Mephitidae
- x
- Procyonidae
- Mustelidae
42 changes: 24 additions & 18 deletions tree_handler_output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,24 +523,30 @@ a
input: tu.PrepareMarkdownFile(t)},
out: out{
output: strings.TrimPrefix(`
a
├── i
│ ├── u
│ │ ├── k
│ │ └── kk
│ └── t
├── e
│ └── o
└── g
a
├── i
│ ├── u
│ │ ├── k
│ │ └── kk
│ └── t
├── e
│ └── o
└── g
Artiodactyla
├── Artiofabula
│ ├── Cetruminantia
│ │ ├── Whippomorpha
│ │ │ ├── Hippopotamidae
│ │ │ └── Cetacea
│ │ └── Ruminantia
│ └── Suina
└── Tylopoda
Carnivora
├── Feliformia
└── Caniformia
├── Canidae
└── Arctoidea
├── Ursidae
└── x
├── Pinnipedia
└── Musteloidea
├── Ailuridae
└── x
├── Mephitidae
└── x
├── Procyonidae
└── Mustelidae
`, "\n"),
err: nil,
},
Expand Down

0 comments on commit 629a98b

Please sign in to comment.