fnproject/cli

fn list calls: Command option -n does not limit the number of calls to return

Opened this issue · 0 comments

According to the help documentation of fn list calls, the command option -n can be used to limit the number of calls to return. See below:

MANAGEMENT COMMAND
  fn list calls - List all calls for a specific function

USAGE
  fn [global options] list calls [command options] <app-name> <function-name>

DESCRIPTION
  This command provides a list of defined calls for a specific function.

COMMAND OPTIONS
  --path value       Function's path
  --cursor value     Pagination cursor
  --from-time value  'start' timestamp
  --to-time value    'stop' timestamp
  -n value           Number of calls to return (default: 100)
  --output value     Output format (json)

When the -n flag is used as described, it has to effect. Call example:
fn list calls -n 3 app-name fn-name

Result: The CLI lists every call
Expected result: The CLI should only list max 3 calls.

Versions:

Client version is latest version: 0.5.62
Server version:  0.3.668