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

feat(functions): add initial describe cmd #47

Merged
merged 2 commits into from
Jan 25, 2022
Merged

Conversation

fmiamoto
Copy link
Contributor

@fmiamoto fmiamoto commented Jan 25, 2022

What

Implement initial describe cmd

$ bin/azioncli edge_functions describe 3770 --with-code
ID: 3770
Name: HelloFunc
Language: javascript
Reference Count: 2
Modified at: 2022-01-10T19:46:11.559337Z
Initiator Type: edge_application
Last Editor: fsmiamoto@gmail.com
Function to run:
JSON Args: {"a":"b","c":"d"}
Code:
async function handleRequest(request) {
 return new Response("Hello World!!",
   {
       status:204
   })
}
addEventListener("fetch", event => {
 event.respondWith(handleRequest(event.request))
})

Why

https://aziontech.atlassian.net/browse/ENG-18861

@fmiamoto fmiamoto added the feature New feature or request label Jan 25, 2022
@fmiamoto fmiamoto self-assigned this Jan 25, 2022
@fmiamoto fmiamoto merged commit 9ae51ee into dev Jan 25, 2022
@fmiamoto fmiamoto deleted the eng18861_describe branch January 25, 2022 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants