Skip to content

Commit

Permalink
extract the CLI into a separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 19, 2016
1 parent 7d4fb7c commit bddafa5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
12 changes: 0 additions & 12 deletions cli.js

This file was deleted.

7 changes: 1 addition & 6 deletions package.json
Expand Up @@ -9,20 +9,16 @@
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bin": "cli.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js",
"cli.js"
"index.js"
],
"keywords": [
"cli-app",
"cli",
"os",
"operating",
"system",
Expand All @@ -38,7 +34,6 @@
],
"dependencies": {
"macos-release": "^1.0.0",
"meow": "^3.7.0",
"win-release": "^1.0.0"
},
"devDependencies": {
Expand Down
20 changes: 5 additions & 15 deletions readme.md
Expand Up @@ -49,26 +49,16 @@ You can optionally supply a custom [`os.platform()`](http://nodejs.org/api/os.ht
Check out [getos](https://github.com/wblankenship/getos) if you need the Linux distribution name.


## CLI

```
$ npm install --global os-name
```

```
$ os-name --help
## Contributing

Example
$ os-name
OS X Mavericks
```
Production systems depend on this package for logging / tracking. Please be careful when introducing new output, and adhere to existing output format (whitespace, capitalization, etc.).


## Contributing
## Related

Production systems depend on this package for logging / tracking. Please be careful when introducing new output, and adhere to existing output format (whitespace, capitalization, etc.).
- [os-name-cli](https://github.com/sindresorhus/os-name-cli) - CLI for this module


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)
MIT © [Sindre Sorhus](https://sindresorhus.com)

0 comments on commit bddafa5

Please sign in to comment.