Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an '--all' flag to show all items. #109

Open
3 of 6 tasks
data-pup opened this issue Aug 6, 2018 · 7 comments
Open
3 of 6 tasks

Add an '--all' flag to show all items. #109

data-pup opened this issue Aug 6, 2018 · 7 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@data-pup
Copy link
Member

data-pup commented Aug 6, 2018

Currently, we are working on adding logic to display summaries of truncated rows for different sub-commands in #88. This is nice because the number of items is displayed, but it would be nice if we had an --all option to simply display all items, instead of something like --max-items $BIG_NUMBER.

The top sub-command would be a nice place to start, but this should eventually be done for all of the subcommands.

To Do:

  • diff
  • dominators
  • garbage
  • monos
  • paths
  • top
@data-pup data-pup added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 6, 2018
@data-pup
Copy link
Member Author

data-pup commented Aug 6, 2018

@userzimmermann This might be a nice issue for you, if you're looking for other issues to work on here 😸

@userzimmermann
Copy link
Contributor

Definitely, @data-pup! I already created the branch for the PR... :)

@data-pup
Copy link
Member Author

data-pup commented Aug 7, 2018

Awesome! Let me know if you need any help, @fitzgen or I would be happy to provide some guidance if you get stuck 😺

@userzimmermann
Copy link
Contributor

Don't worry ;) I'm still on it! But first had to deal w/ some confusion when running tests :D #116

userzimmermann added a commit to userzimmermann/twiggy that referenced this issue Aug 12, 2018
And extend tests accordingly

Relates to rustwasm#109
userzimmermann added a commit to userzimmermann/twiggy that referenced this issue Aug 13, 2018
With an additional -a shortcut for the simple --all flag that combines
listing all generics and monomorphizations

Also extends tests accordingly

Relates to rustwasm#109
userzimmermann added a commit to userzimmermann/twiggy that referenced this issue Aug 14, 2018
With an additional -a shortcut for the simple --all flag that combines
listing all generics and monomorphizations

Also extends tests accordingly

Relates to rustwasm#109
userzimmermann added a commit to userzimmermann/twiggy that referenced this issue Aug 14, 2018
With an additional -a shortcut for the simple --all flag that combines
listing all generics and monomorphizations

Also extends tests accordingly

Relates to rustwasm#109
userzimmermann added a commit to userzimmermann/twiggy that referenced this issue Aug 20, 2018
With an additional -a shortcut for the simple --all flag that combines
listing all generics and monomorphizations

Also extends tests accordingly

Relates to rustwasm#109
@rharriso
Copy link

rharriso commented May 8, 2019

Looks like this has been closed?

@fitzgen
Copy link
Member

fitzgen commented May 8, 2019

Looks like this has been closed?

The "To Do" checkboxes in the top comment accurately reflect the current state of play. There are a number of commands that don't have an --all flag yet.

@tom-frantz
Copy link

Heya all, I'd be willing to tackle this, but I'm new to this whole open source thing.

Also, for the top command, it already has the maximum value for a u32

pub struct Top {
    // ...
    /// The maximum number of items to display.
    #[structopt(short = "n", default_value = "4294967295")]
    max_items: u32,
    // ...
}

Would this be fine to keep or if we're adding the all option, should the default be set to something smaller? perhaps 20 like Diff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants