-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for sorting the output of the
generate tree
command by …
…the items' name, visibility or kind
- Loading branch information
1 parent
d3a2953
commit 637095b
Showing
9 changed files
with
408 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
--- | ||
source: tests/generate_tree.rs | ||
expression: output | ||
--- | ||
STDERR: | ||
|
||
STDOUT: | ||
|
||
crate smoke | ||
├── mod hierarchy: pub(crate) | ||
│ └── mod lorem: pub(self) | ||
│ ├── mod consectetur: pub(self) | ||
│ │ ├── mod adipiscing: pub(self) | ||
│ │ │ ├── mod elit: pub(self) | ||
│ │ │ │ └── struct Elit: pub(self) | ||
│ │ │ └── struct Adipiscing: pub(self) | ||
│ │ └── struct Consectetur: pub(self) | ||
│ ├── mod dolor: pub(self) | ||
│ │ ├── mod sit: pub(self) | ||
│ │ │ ├── mod amet: pub(self) | ||
│ │ │ │ └── struct Amet: pub(self) | ||
│ │ │ └── struct Sit: pub(self) | ||
│ │ └── struct Dolor: pub(self) | ||
│ ├── mod ipsum: pub(self) | ||
│ │ └── struct Ipsum: pub(self) | ||
│ └── struct Lorem: pub(self) | ||
├── mod orphans: pub(crate) | ||
├── mod uses: pub(crate) | ||
│ └── mod cycle: pub(self) | ||
│ ├── mod node_0: pub(self) | ||
│ └── mod node_1: pub(self) | ||
│ └── mod node_2: pub(self) | ||
└── mod visibility: pub(crate) | ||
└── mod dummy: pub(self) | ||
├── mod enums: pub(self) | ||
│ ├── enum PubCrate: pub(crate) | ||
│ ├── enum PubModule: pub(in crate::visibility) | ||
│ ├── enum PubPrivate: pub(self) | ||
│ ├── enum PubPublic: pub | ||
│ └── enum PubSuper: pub(super) | ||
├── mod fns: pub(self) | ||
│ ├── fn pub_crate: pub(crate) | ||
│ ├── fn pub_module: pub(in crate::visibility) | ||
│ ├── fn pub_private: pub(self) | ||
│ ├── fn pub_public: pub | ||
│ └── fn pub_super: pub(super) | ||
├── mod kinds: pub(self) | ||
│ ├── mod Module: pub(self) | ||
│ ├── unsafe trait UnsafeTrait: pub(self) | ||
│ ├── trait Trait: pub(self) | ||
│ ├── type TraitAlias: pub(self) | ||
│ ├── type TypeAlias: pub(self) | ||
│ ├── struct Struct: pub(self) | ||
│ ├── enum Enum: pub(self) | ||
│ ├── union Union: pub(self) | ||
│ ├── const fn ConstFunction: pub(self) | ||
│ ├── async fn AsyncFunction: pub(self) | ||
│ ├── unsafe fn UnsafeFunction: pub(self) | ||
│ └── fn Function: pub(self) | ||
├── mod mods: pub(self) | ||
│ ├── mod pub_crate: pub(crate) | ||
│ ├── mod pub_module: pub(in crate::visibility) | ||
│ ├── mod pub_private: pub(self) | ||
│ ├── mod pub_public: pub | ||
│ └── mod pub_super: pub(super) | ||
├── mod structs: pub(self) | ||
│ ├── struct PubCrate: pub(crate) | ||
│ ├── struct PubModule: pub(in crate::visibility) | ||
│ ├── struct PubPrivate: pub(self) | ||
│ ├── struct PubPublic: pub | ||
│ └── struct PubSuper: pub(super) | ||
├── mod traits: pub(self) | ||
│ ├── mod r#unsafe: pub(self) | ||
│ │ ├── unsafe trait PubCrate: pub(crate) | ||
│ │ ├── unsafe trait PubModule: pub(in crate::visibility) | ||
│ │ ├── unsafe trait PubPrivate: pub(self) | ||
│ │ ├── unsafe trait PubPublic: pub | ||
│ │ └── unsafe trait PubSuper: pub(super) | ||
│ └── mod safe: pub(self) | ||
│ ├── trait PubCrate: pub(crate) | ||
│ ├── trait PubModule: pub(in crate::visibility) | ||
│ ├── trait PubPrivate: pub(self) | ||
│ ├── trait PubPublic: pub | ||
│ └── trait PubSuper: pub(super) | ||
└── mod unions: pub(self) | ||
├── union PubCrate: pub(crate) | ||
├── union PubModule: pub(in crate::visibility) | ||
├── union PubPrivate: pub(self) | ||
├── union PubPublic: pub | ||
└── union PubSuper: pub(super) | ||
|
Oops, something went wrong.