openfaas / openfaas/faas-cli

"faas-cli new" should accept option to use default stack.yml name

Open
#371 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
Go
Stars
816
Forks
230
Avg merge
6h 4m
Merged PRs (30d)
1

Description

When typing in faas-cli new --lang node html-project for instance you get a YAML file named html-project.

We introduced "stack.yml" as a default file-name, but have no way of generating a new function with the stack name of stack.yml. You have to rename it afterwards.

What ideas do you have for allowing this without getting to verbose in the CLI?

faas new --lang python tester --stack=stack.yml

We do have an append flag - perhaps we could look at collapsing the --stack and --append flag into one option?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the faas-cli new command and inspect how it handles the generated stack file, including the existing --stack and --append options. Define and implement a clear option for generating stack.yml, then verify that faas-cli new --lang python tester produces the expected filename without breaking existing naming and append behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.