diff options
| author | Zack Hobson | 2013-12-27 10:15:59 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-12-27 10:15:59 -0800 | 
| commit | 40610cb63b577bed614bc6d5348dfde1ba66e26f (patch) | |
| tree | 8a8cbbf23c56b4847587e5963886a7f39dbbe5a2 /README.markdown | |
| parent | 51236213fdf0a62d2795e2a3c341e87ab8d83117 (diff) | |
| parent | f0eee83fcdf3047674db3310f2847704021e54e1 (diff) | |
| download | hcl-40610cb63b577bed614bc6d5348dfde1ba66e26f.tar.bz2 | |
Merge branch 'master' into resource_routes
Diffstat (limited to 'README.markdown')
| -rw-r--r-- | README.markdown | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/README.markdown b/README.markdown index e898cb9..6c185aa 100644 --- a/README.markdown +++ b/README.markdown @@ -137,6 +137,25 @@ Adding something like the above to your bashrc will enable a new command,  `myhcl`. When using `myhcl` you can use different credentials and aliases,  while `hcl` will continue to function with your original configuration. +### Interactive console + +An interactive Ruby console is provided to allow you to use the fairly +powerful Harvest API client built into HCl, since not all of its +features are exposed via the command line. The current {HCl::App} +instance is available as `hcl`. + +It's also possible to issue HCl commands directly (as Ruby methods), or +to query specific JSON end points and have the results pretty-printed: + +    hcl console +    bin/hcl> show "yesterday" +    # => prints yesterday's timesheet, note the quotes! +    bin/hcl> Net.get('daily') +    # => displays a pretty-printed version of the JSON output + +Note that unlike the commands themselves, the HCl internals may change without +notice. +  ### Date Formats  Dates can be expressed in a variety of ways. See the [Chronic documentation][cd] | 
