-
Notifications
You must be signed in to change notification settings - Fork 21
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 Usage Information to Readme #35
Conversation
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.
In terms of the validity of the content, all is good but I think @dchai76 is much better at reviewing documentation-related changes - content-wise.
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.
This is great! I love clis.
README.md
Outdated
|
||
| Command | Description | | ||
| - | - | | ||
| `logdna register [email] [key]` | Register a new LogDNA account. `[key]` is optional and will autogenerate. | |
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.
I think key
could use better explanation. Like, reading this I don't know what it's for and why you would ever specify it. Maybe call it [ingestion_key]
to start and say "If you are registering for a new account and don't yet have an ingestion key, this command will create one for you."
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.
Looks like we removed support for the key
param some time ago. I'll remove it from here. You can check commit 0c9781a70 on ldapi.
README.md
Outdated
| Command | Description | | ||
| - | - | | ||
| `logdna register [email] [key]` | Register a new LogDNA account. `[key]` is optional and will autogenerate. | | ||
| `logdna ssologin` | Login to a LogDNA user account via single sign-on. | |
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.
Let's say Log in to LogDNA via single sign-on
README.md
Outdated
| - | - | | ||
| `logdna register [email] [key]` | Register a new LogDNA account. `[key]` is optional and will autogenerate. | | ||
| `logdna ssologin` | Login to a LogDNA user account via single sign-on. | | ||
| `logdna login [email]` | Login to a LogDNA user account. | |
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.
Log in to LogDNA
README.md
Outdated
| `logdna register [email] [key]` | Register a new LogDNA account. `[key]` is optional and will autogenerate. | | ||
| `logdna ssologin` | Login to a LogDNA user account via single sign-on. | | ||
| `logdna login [email]` | Login to a LogDNA user account. | | ||
| `logdna tail [options] [query]` | Live tail with optional filtering. Options include `-h`, `-a`, `-l`, `-t` to filter by hosts, apps, levels or tags respectively. Run `logdna tail -h` to learn more. | |
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.
This is kind of confusing - are we re-using -h
for both hosts filtering and help instructions? Maybe help should be --help
?
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.
Yes, it should be --help
README.md
Outdated
| `logdna ssologin` | Login to a LogDNA user account via single sign-on. | | ||
| `logdna login [email]` | Login to a LogDNA user account. | | ||
| `logdna tail [options] [query]` | Live tail with optional filtering. Options include `-h`, `-a`, `-l`, `-t` to filter by hosts, apps, levels or tags respectively. Run `logdna tail -h` to learn more. | | ||
| `logdna switch` | Switch between multiple accounts if your login has access to more than one. | |
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.
If your login has access to more than one account, this command allows you to switch between them.
README.md
Outdated
| `logdna login [email]` | Login to a LogDNA user account. | | ||
| `logdna tail [options] [query]` | Live tail with optional filtering. Options include `-h`, `-a`, `-l`, `-t` to filter by hosts, apps, levels or tags respectively. Run `logdna tail -h` to learn more. | | ||
| `logdna switch` | Switch between multiple accounts if your login has access to more than one. | | ||
| `logdna search [options] [query]` | Limited search functionality with optional filtering. See `logdna search --help`. | |
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.
"Basic search with optional filtering. Run logdna search --help
for options."
README.md
Outdated
| `logdna switch` | Switch between multiple accounts if your login has access to more than one. | | ||
| `logdna search [options] [query]` | Limited search functionality with optional filtering. See `logdna search --help`. | | ||
| `logdna info` | Show current logged in user info. | | ||
| `logdna update` | Update CLI to latest version. | |
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.
"Update the CLI to the latest version."
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.
2 small suggestions, otherwise looks good, let's merge.
index.js
Outdated
@@ -20,13 +20,12 @@ process.title = 'logdna'; | |||
program._name = 'logdna'; | |||
program | |||
.version(pkg.version, '-v, --version') | |||
.usage('[commands] [options]\n\n This CLI duplicates useful functionality of the LogDNA web app.') | |||
// .description('This CLI duplicates useful functionality of the LogDNA web app.') | |||
.usage('[commands] [options]\n\nThe LogDNA CLI allows you to signup for a new account and tail your servers right from the command line.') |
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.
Let's use "sign up" not "signup", and "tail your logs" instead of "tail your servers"
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.
done
Add the following information to readme:
Usage
logdna register [email]
logdna ssologin
logdna login [email]
logdna tail [options] [query]
-h
,-a
,-l
,-t
to filter by hosts, apps, levels or tags respectively. Runlogdna tail --help
to learn more.logdna switch
logdna search [options] [query]
logdna search --help
for options.logdna info
logdna update
Examples