Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local run improvements #950

Merged
merged 3 commits into from
Feb 8, 2023
Merged

Local run improvements #950

merged 3 commits into from
Feb 8, 2023

Conversation

alexellis
Copy link
Member

@alexellis alexellis commented Feb 8, 2023

Description

Local run improvements for developer experience

Motivation and Context

When there is only one function within the YAML file, run that instead of prompting for a name

Print the address for the local web server.

Improved examples and help text for the command within the CLI.

How Has This Been Tested?

Tested whilst building a Discord bot and demonstrated on the weekly office hours call

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
When there is only one function within the YAML file, run that.

Print the address for the local web server.

Tested whilst building a Discord bot

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
@alexellis alexellis merged commit 160fd87 into master Feb 8, 2023

err = updateGitignore()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this removal just a weird diff or did you actually remove it?

When the feature was initially merged you specifically asked that the gitignore is also set during local run, to avoid committing the secrets folder. Has this changed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a change from the diff, this was copy/pasted from a different version of the command, so I'll add it back in again.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@welteki can you send a PR to reintroduce this please?

@alexellis alexellis deleted the local-run-improvements branch February 8, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants