Skip to content

Commit

Permalink
Issue infinitered#573: loadConfig Documentation Parameters Reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
amartincastro authored and Ariel Castro committed Jan 31, 2020
1 parent 5881f44 commit cbaa58a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/toolbox-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ module.exports = {
} = toolbox

// use cosmiconfig directly: directory (string) & brand (string)
const myConfig = loadConfig(process.cwd(), brand)
const myConfig = loadConfig(brand, process.cwd())
// or
const myConfig = loadConfig('~/.myconfig/', 'movie')
const myConfig = loadConfig('movie', '~/.myconfig/')

// now access myConfig
info(myConfig.shirtSize)
Expand Down

0 comments on commit cbaa58a

Please sign in to comment.