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

Refactor function commands #1256

Merged
merged 4 commits into from
Nov 22, 2024
Merged

Conversation

brandenrodgers
Copy link
Contributor

@brandenrodgers brandenrodgers commented Nov 22, 2024

Description and Context

This refactors the functions commands to conform to our guidelines. Major changes:

hs logs

  • Update description to: "View logs for a CMS serverless function."
  • Remove --version flag because it's unnecessary
  • The endpoint should be kept as a positional and should fall back to a prompt when not specified

hs functions

  • Update description to: "Commands for managing CMS serverless functions."
  • Remove all flags except for the --help flag because they don't do anything
  • Fix duplicate argument issue for config and account in nested commands
  • The primary way to run this command should be hs function, but we should continue to support hs functions

hs functions list

  • Update description to: "List the currently deployed CMS serverless functions."

Screenshots

TODO

Who to Notify

Copy link
Contributor

@joe-yeager joe-yeager left a comment

Choose a reason for hiding this comment

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

1 non blocking question about moving the list alias, but other than that LGTM!

Comment on lines 14 to 17
.command({
...list,
aliases: 'ls',
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move this to the command field in the list subcommand?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah I saw you did that in another PR. I'll do the same 👍

@brandenrodgers brandenrodgers merged commit c34a566 into next Nov 22, 2024
1 check passed
@brandenrodgers brandenrodgers deleted the br/refactor-functions-commands branch November 22, 2024 22:33
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