From e70fb135b6993d29b3a1a102cd895421135160a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20D=C3=ADaz?= Date: Wed, 5 Apr 2017 23:03:53 -0600 Subject: [PATCH] Updated readme. Made it so the CLI shows the correct version. --- README.md | 12 ++++++------ bin/beau | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5d5e027..ad78f03 100644 --- a/README.md +++ b/README.md @@ -30,20 +30,20 @@ Beau, is a CLI that executes HTTP requests based on a YAML configuration file. T VERSION: 1 HOST: https://example.com/api/ - + POST /session: - ALIAS: $session + ALIAS: session PAYLOAD: username: seich password: hello01 - + GET /profile - ALIAS: $profile + ALIAS: profile HEADERS: authorization: Bearer $session.response.body.token - + GET /user/$profile.response.body.id/posts - ALIAS: $friends + ALIAS: friends HEADERS: authorization: Bearer $session.response.body.token PARAMS: diff --git a/bin/beau b/bin/beau index e0a0af6..7bfdf10 100755 --- a/bin/beau +++ b/bin/beau @@ -7,8 +7,10 @@ const { Line, Spinner } = require('clui'); const clc = require('cli-color'); const eyes = require('eyes'); +const package = require('../package.json'); + program - .version('0.0.1') + .version(package.version) .usage(`[options] -r `) .option('-r, --request [request]', `The alias for the request you'd like to trigger.`) .option('-v, --verbose', `Show all the information related to the current request and it's response.`)