exports main module

This commit is contained in:
Dave Eddy 2015-09-29 18:15:08 -04:00
parent e7109071de
commit faca038854
3 changed files with 23 additions and 5 deletions

View File

@ -16,9 +16,11 @@ The CLI covers both basic and advanced usage of [CloudAPI](https://apidocs.joyen
As a lightweight programmable interface for CloudAPI, the `triton` CLI supports both name or
UUID identification of object instances and the use of short ID, as well as the choice
between concise tabular responses and full JSON responses. **The `triton` CLI is currently in
beta and will be expanded over time to support all CloudAPI commands, eventually replacing
`node-smartdc` as both the API client library for Triton cloud and the command line tool.**
between concise tabular responses and full JSON responses.
**The `triton` CLI is currently in beta and will be expanded over time to
support all CloudAPI commands, eventually replacing `node-smartdc` as both the
API client library for Triton cloud and the command line tool.**
## Setup
@ -42,7 +44,7 @@ Have the URL handy as you'll need it in the next step.
### Installation
1. Install [node.js](http://nodejs.org/).
2. `npm install -g git://github.com/joyent/node-triton`
2. `npm install -g joyent-triton`
Verify that it is installed and on your PATH:

16
lib/index.js Normal file
View File

@ -0,0 +1,16 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright 2015 Joyent, Inc.
*
* module entry point
*/
module.exports = {
createTritonApiClient: require('./tritonapi').createClient,
createCloudApiClient: require('./cloudapi2').createClient
};

View File

@ -3,7 +3,6 @@
"description": "Joyent Triton CLI and client (https://www.joyent.com/triton)",
"version": "1.0.0",
"author": "Joyent (joyent.com)",
"private": true,
"dependencies": {
"assert-plus": "0.1.5",
"backoff": "2.4.1",
@ -31,6 +30,7 @@
"devDependencies": {
"tape": "4.2.0"
},
"main": "./lib",
"scripts": {
"test": "make test"
},