-
Notifications
You must be signed in to change notification settings - Fork 129
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 outline command (similar to ls in irb and pry) #173
Conversation
@ko1 btw, what does the |
I'd like to confirm just in case. These code are based on irb project, right? Is that ok not to write any license here? |
@ono-max Both projects' copyright belongs to Matz, so I'm not sure if that's necessary. |
Now I'm thinking about the name again.
|
@ko1 if |
It is one idea. |
I see, thanks for the references 👍 |
I see. I think BTW
what is "constants, local variables" of given obj? Constants only if obj is Class/Module? |
@ko1 what do you think about
I'll update it. |
578afcc
to
0dd2208
Compare
@ko1 I've updated the description. |
what is `"local variables" of given object? |
I think |
So maybe we can update
|
Yes, I think similar, but:
It can conflict with other subcommand and I couldn't find good subcommand for that.
does make sense? |
But I agree nobody use
|
|
BTW, for the local variables, now Which is useful? I like current |
@ko1 I'm confused. Is
InfoIn some objects like Rails controllers, the current info could print dozens of lines:
lsBecause But variables are listed at the bottom 3 lines. So for reading available variables (without the values), it's a more convenient option:
|
|
BTW |
could you try current master with one-line |
@ko1 I haven't used tool/language with a |
The new info commands are pretty useful (`info consts) and also easier to read 👍 |
Today I was thinking about Now I prefer to use
I see. Common Lisp |
|
@ko1 I've renamed the command and the PR |
Sorry for late. Document: please use For source code, I don't want to increase a file and classes. It is okay to merge current source and I rewrite it. (also I'll confirmed about license before merge to the original author) |
|
Yes. I want to make them smaller. |
I see, thanks. Is mixin an option then? |
More comments, if we introduce such file, maybe we want to separate all of components into small files. |
that's what I'm thinking about. I think |
c7c69f6
to
782130f
Compare
@ko1 have you decided whether to use similar file pattern for other commands? |
Sorry I didn't heard about license yet. Anyway, now I don't want to allow file separations for each command, this patch is not acceptable for me. |
@ko1 sure 👍 |
author Kokubun-san allow me to copy it. |
@ko1 thank you! |
As described in #172 (comment), we can't rely on
irb
for the implementation. This PR introduces the feature by borrowingirb
's ls implementation with some modifications. And we decided to name itoutline
instead ofls
after discussing the name in this PR's comments.It also avoids 2 issues we see in #172:
Closes #29