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

pkg/compute/pack: implement pack subcommand #282

Merged
merged 15 commits into from May 19, 2021
Merged
2 changes: 2 additions & 0 deletions pkg/app/run.go
Expand Up @@ -138,6 +138,7 @@ func Run(args []string, env config.Environment, file config.File, configFilePath
computeBuild := compute.NewBuildCommand(computeRoot.CmdClause, httpClient, &globals)
computeDeploy := compute.NewDeployCommand(computeRoot.CmdClause, httpClient, &globals)
computePublish := compute.NewPublishCommand(computeRoot.CmdClause, &globals, computeBuild, computeDeploy)
computePack := compute.NewPackCommand(computeRoot.CmdClause, &globals)
computeUpdate := compute.NewUpdateCommand(computeRoot.CmdClause, httpClient, &globals)
computeValidate := compute.NewValidateCommand(computeRoot.CmdClause, &globals)

Expand Down Expand Up @@ -389,6 +390,7 @@ func Run(args []string, env config.Environment, file config.File, configFilePath
computeBuild,
computeDeploy,
computePublish,
computePack,
computeUpdate,
computeValidate,

Expand Down
5 changes: 5 additions & 0 deletions pkg/app/run_test.go
Expand Up @@ -322,6 +322,11 @@ COMMANDS
--backend-port=BACKEND-PORT
A port number for the package backend

compute pack --path=PATH
Package a pre-compiled Wasm binary for a Fastly Compute@Edge service

-p, --path=PATH Path to a pre-compiled Wasm binary

compute update --service-id=SERVICE-ID --version=VERSION --path=PATH
Update a package on a Fastly Compute@Edge service version

Expand Down
2 changes: 1 addition & 1 deletion pkg/compute/assemblyscript.go
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/fastly/cli/pkg/text"
)

// AssemblyScript implements Toolchain for the AssemblyScript language.
// AssemblyScript implements a Toolchain for the AssemblyScript language.
type AssemblyScript struct{}

// NewAssemblyScript constructs a new AssemblyScript.
Expand Down