Skip to content

Commit

Permalink
chore: updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Dec 29, 2021
1 parent bd5aeca commit 591d40c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Acquire a Github access token from [here](https://github.com/settings/tokens) an
## Usage

### sam-patterns init
Initialises a project based on a cookiecutter template. By default the tool gives access to the same [AWS managed templates](https://github.com/aws/aws-sam-cli-app-templates) that are used by [sam-cli](https://github.com/aws/aws-sam-cli).
Initialises a SAM project based on a cookiecutter template. By default the tool gives access to the same [AWS managed templates](https://github.com/aws/aws-sam-cli-app-templates) that are used by [sam-cli](https://github.com/aws/aws-sam-cli).

You can add custom template locations by using the `--add-repository` flag
You can add custom template locations by using the `--add-repository` flag.

```
Usage: sam-patterns init [options]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sam-patterns-cli",
"version": "0.0.18",
"version": "0.0.19",
"description": "Command line interface for quickly using patterns from https://github.com/aws-samples/serverless-patterns/",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/shared/settingsUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function saveInitSource(settings) {

function getPatternSource() {
if (!fs.existsSync(settingsFilePath)) {
return { patternSources: [], initSources: [] };
return [];
}
const file = fs.readFileSync(settingsFilePath);
const obj = JSON.parse(file.toString());
Expand All @@ -63,7 +63,7 @@ function getPatternSource() {

function getInitSource() {
if (!fs.existsSync(settingsFilePath)) {
return { patternSources: [], initSources: [] };
return [];
}
const file = fs.readFileSync(settingsFilePath);
const obj = JSON.parse(file.toString());
Expand Down

0 comments on commit 591d40c

Please sign in to comment.