Skip to content

Commit 7b00f17

Browse files
authored
feat(command-functions-list): remove hidden flag (#1844)
1 parent 550126e commit 7b00f17

File tree

5 files changed

+29
-3
lines changed

5 files changed

+29
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ Manage netlify functions
127127
| [`functions:build`](/docs/commands/functions.md#functionsbuild) | Build functions locally |
128128
| [`functions:create`](/docs/commands/functions.md#functionscreate) | Create a new function locally |
129129
| [`functions:invoke`](/docs/commands/functions.md#functionsinvoke) | Trigger a function while in netlify dev with simulated data, good for testing function calls including Netlify's Event Triggered Functions |
130+
| [`functions:list`](/docs/commands/functions.md#functionslist) | List functions that exist locally |
130131

131132

132133
### [init](/docs/commands/init.md)

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Manage netlify functions
9191
| [`functions:build`](/docs/commands/functions.md#functionsbuild) | Build functions locally |
9292
| [`functions:create`](/docs/commands/functions.md#functionscreate) | Create a new function locally |
9393
| [`functions:invoke`](/docs/commands/functions.md#functionsinvoke) | Trigger a function while in netlify dev with simulated data, good for testing function calls including Netlify's Event Triggered Functions |
94+
| [`functions:list`](/docs/commands/functions.md#functionslist) | List functions that exist locally |
9495

9596

9697
### [init](/docs/commands/init.md)

docs/commands/functions.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ netlify functions
2121
| [`functions:build`](/docs/commands/functions.md#functionsbuild) | Build functions locally |
2222
| [`functions:create`](/docs/commands/functions.md#functionscreate) | Create a new function locally |
2323
| [`functions:invoke`](/docs/commands/functions.md#functionsinvoke) | Trigger a function while in netlify dev with simulated data, good for testing function calls including Netlify's Event Triggered Functions |
24+
| [`functions:list`](/docs/commands/functions.md#functionslist) | List functions that exist locally |
2425

2526

2627
**Examples**
@@ -121,6 +122,31 @@ $ netlify functions:invoke myfunction --querystring "foo=1
121122
$ netlify functions:invoke myfunction --payload "./pathTo.json"
122123
```
123124
125+
---
126+
## `functions:list`
127+
128+
List functions that exist locally
129+
130+
Helpful for making sure that you have formatted your functions correctly
131+
132+
NOT the same as listing the functions that have been deployed. For that info you need to go to your Netlify deploy log.
133+
134+
135+
**Usage**
136+
137+
```bash
138+
netlify functions:list
139+
```
140+
141+
**Flags**
142+
143+
- `name` (*string*) - name to print
144+
- `functions` (*string*) - Specify a functions folder to serve
145+
- `json` (*boolean*) - Output function data as JSON
146+
- `debug` (*boolean*) - Print debugging information
147+
- `httpProxy` (*string*) - Proxy server address to route requests through.
148+
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
149+
124150
---
125151
126152
<!-- AUTO-GENERATED-CONTENT:END -->

docs/commands/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Manage netlify functions
7777
| [`functions:build`](/docs/commands/functions.md#functionsbuild) | Build functions locally |
7878
| [`functions:create`](/docs/commands/functions.md#functionscreate) | Create a new function locally |
7979
| [`functions:invoke`](/docs/commands/functions.md#functionsinvoke) | Trigger a function while in netlify dev with simulated data, good for testing function calls including Netlify's Event Triggered Functions |
80+
| [`functions:list`](/docs/commands/functions.md#functionslist) | List functions that exist locally |
8081

8182

8283
### [init](/docs/commands/init.md)

src/commands/functions/list.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,4 @@ FunctionsListCommand.flags = {
109109
...FunctionsListCommand.flags,
110110
}
111111

112-
// TODO make visible once implementation complete
113-
FunctionsListCommand.hidden = true
114-
115112
module.exports = FunctionsListCommand

0 commit comments

Comments
 (0)