Skip to content

Conversation

laktek
Copy link
Contributor

@laktek laktek commented Jan 18, 2023

What kind of change does this PR introduce?

This adds support for downloading the existing Edge Functions from the CLI.

Example:

supabase functions download my-function --project-ref abcd

What is the current behavior?

No support for downloading existing edge functions. Users have to contact support to get their source code.

What is the new behavior?

Screen Shot 2023-01-18 at 11 00 59 am

Additional context

NA

@laktek laktek requested a review from a team as a code owner January 18, 2023 00:01
@coveralls
Copy link

coveralls commented Jan 18, 2023

Pull Request Test Coverage Report for Build 3955003912

  • 20 of 92 (21.74%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.5%) to 62.321%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/functions.go 2 9 22.22%
internal/utils/misc.go 15 24 62.5%
internal/functions/download/download.go 0 56 0.0%
Totals Coverage Status
Change from base Build 3954995845: -0.5%
Covered Lines: 3609
Relevant Lines: 5791

💛 - Coveralls

@laktek laktek requested a review from sweatybridge January 18, 2023 21:31
@laktek laktek merged commit 72697a0 into main Jan 19, 2023
@laktek laktek deleted the function-download branch January 19, 2023 03:47
@github-actions
Copy link

🎉 This PR is included in version 1.34.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants