-
Notifications
You must be signed in to change notification settings - Fork 68
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 --list option, and prompt user to open an issue #7
Conversation
Ok, now I see what you were wanting to do. But I'm wondering, why wouldn't people just: ls
open filename.html But also, I'm pretty excited about all the node you did!!! |
Just chiming in from a user's perspective. I would much rather Edit: If I were to list my issues, I may not necessarily want to open one. Or I might want to open more than just one. And so on. P.S. Very excited about this project! |
Because that'd require me being in the offline-issues folder. And - where is it?!
Simply press either enter or ctrlC will exit the prompt. |
Do you mean the globally installed offline-issues the module folder? You don't need to (and shouldn't) be in that directory. You can run cd Desktop
mkdir read-these-issues
cd read-these-issues
offline-issues jlord/offline-issues#7
ls html
# see all the files you have
open filename.html If I use So in my mind (and with my understanding of this) it adds:
But in doing so:
Whereas default The user doesn't have to use the Anyway, I don't mind putting it in since it's optional and already written but I just wanted to surface this stuff @muan so that it's clear about what it is/isn't doing. 😻 |
|
||
module.exports = function listofissues(cb) { | ||
fs.readdir(path, function(err, files) { | ||
var num = files.length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to handle the err
here:
if (err) return cb(err, "Error reading directory")
@muan Do you think it would be possible to show offline-issue instances across multiple directories? Like if we had a hidden . file in the directory to identify it and could search for that? |
So what I thought happen was all files get stored in the directory where the module is, but apparently I was wrong, seems like files get stored at whichever directory you were in, so never mind. lol Such node. Much to learn. |
Hi @jlord how is this.
I really want issue titles though.