This commit is contained in:
mockturtl
2015-05-13 17:23:53 -04:00
parent e024112c31
commit e1e6220335
2 changed files with 18 additions and 16 deletions

View File

@ -5,11 +5,7 @@ Load environment variables at runtime from a `.env` file.
[![Pub Version][pub-badge]][pub] [![Pub Version][pub-badge]][pub]
[![Build Status][ci-badge]][ci] [![Build Status][ci-badge]][ci]
[![][dartdocs-badge]][dartdocs] [![Documentation][dartdocs-badge]][dartdocs]
_NB: Travis uses [`test_runner`][], which has not yet moved off `unittest`._
[`test_runner`]: https://github.com/google/test_runner.dart/blob/master/pubspec.yaml
[ci-badge]: https://travis-ci.org/mockturtl/dotenv.svg?branch=master [ci-badge]: https://travis-ci.org/mockturtl/dotenv.svg?branch=master
[ci]: https://travis-ci.org/mockturtl/dotenv [ci]: https://travis-ci.org/mockturtl/dotenv
@ -18,7 +14,13 @@ _NB: Travis uses [`test_runner`][], which has not yet moved off `unittest`._
[dartdocs-badge]: https://img.shields.io/badge/dartdocs-reference-blue.svg [dartdocs-badge]: https://img.shields.io/badge/dartdocs-reference-blue.svg
[dartdocs]: http://www.dartdocs.org/documentation/dotenv/latest [dartdocs]: http://www.dartdocs.org/documentation/dotenv/latest
###### install ### usage
See [documentation][dotenv-usage].
[dotenv-usage]: http://www.dartdocs.org/documentation/dotenv/latest/index.html#dotenv/dotenv
### cli
Get the latest: Get the latest:
@ -26,10 +28,10 @@ Get the latest:
$ pub global activate dotenv $ pub global activate dotenv
``` ```
### run Run:
``` ```sh
$ pub run dotenv # load the environment and print it to stdout $ pub run dotenv # load a file and print the environment to stdout
$ pub run dotenv:new # create the `.env` file and add it to `.gitignore` $ pub run dotenv:new # create the `.env` file and add it to `.gitignore`
``` ```

View File

@ -5,12 +5,11 @@ _Consider calling these in a git pre-commit hook._
Ensure `~/.pub_cache/bin` is in your `$PATH`. Ensure `~/.pub_cache/bin` is in your `$PATH`.
### [fmt.sh][] ### [fmt.sh](fmt.sh)
Runs the official [code formatter][]. Runs the official [code formatter][].
[code formatter]: https://github.com/dart-lang/dart_style [code formatter]: https://github.com/dart-lang/dart_style
[fmt.sh]: fmt.sh
###### setup ###### setup
@ -18,17 +17,14 @@ Runs the official [code formatter][].
$ pub global activate dart_style $ pub global activate dart_style
``` ```
### [test.sh][] ### [test.sh](test.sh)
Runs the unit test suite. Runs the unit test suite.
[test.sh]: test.sh ### [docs.sh](docs.sh)
### [docs.sh][]
Preview [dartdoc][] documentation. Preview [dartdoc][] documentation.
[docs.sh]: docs.sh
[dartdoc]: https://github.com/dart-lang/dartdoc [dartdoc]: https://github.com/dart-lang/dartdoc
###### setup ###### setup
@ -36,3 +32,7 @@ Preview [dartdoc][] documentation.
```sh ```sh
$ pub global activate dartdoc $ pub global activate dartdoc
``` ```
### [travis.sh](travis.sh)
Run the analyzer and unit tests on Travis CI.