From 8e69c4576b79a6802ecd22592ac191ae10cea88c Mon Sep 17 00:00:00 2001 From: ryank90 Date: Sun, 6 Sep 2026 09:27:51 +0100 Subject: [PATCH] chore(serverless): drop init and dev from the MVP surface Local project scaffold and a local runner are not scheduled; leaving the stubs advertised a command path that cannot succeed. Co-authored-by: Cursor --- docs/runware_serverless.md | 2 -- docs/runware_serverless_deploy.md | 5 ++-- docs/runware_serverless_dev.md | 37 --------------------------- docs/runware_serverless_init.md | 37 --------------------------- internal/cmd/serverless/deploy.go | 5 ++-- internal/cmd/serverless/dev.go | 16 ------------ internal/cmd/serverless/init.go | 16 ------------ internal/cmd/serverless/serverless.go | 2 -- 8 files changed, 4 insertions(+), 116 deletions(-) delete mode 100644 docs/runware_serverless_dev.md delete mode 100644 docs/runware_serverless_init.md delete mode 100644 internal/cmd/serverless/dev.go delete mode 100644 internal/cmd/serverless/init.go diff --git a/docs/runware_serverless.md b/docs/runware_serverless.md index 0dfe069..2f49b40 100644 --- a/docs/runware_serverless.md +++ b/docs/runware_serverless.md @@ -26,9 +26,7 @@ Deploy, monitor, and manage Runware serverless applications on the platform * [runware](runware.md) - CLI tool for the Runware API * [runware serverless apps](runware_serverless_apps.md) - Manage deployed serverless applications * [runware serverless deploy](runware_serverless_deploy.md) - Deploy a new serverless application -* [runware serverless dev](runware_serverless_dev.md) - Run a serverless application locally for development * [runware serverless gpus](runware_serverless_gpus.md) - List available GPU types and pricing -* [runware serverless init](runware_serverless_init.md) - Initialize a new serverless project * [runware serverless open](runware_serverless_open.md) - Open an application in the Runware dashboard * [runware serverless secrets](runware_serverless_secrets.md) - Manage organisation secrets for serverless applications * [runware serverless usage](runware_serverless_usage.md) - Show serverless usage and billing events diff --git a/docs/runware_serverless_deploy.md b/docs/runware_serverless_deploy.md index cab465f..5d45c36 100644 --- a/docs/runware_serverless_deploy.md +++ b/docs/runware_serverless_deploy.md @@ -42,9 +42,8 @@ sandbox whose filesystem is part of the checkpointed state, so an unmounted download is copied into every checkpoint and fetched again on every cold start. A volume keeps it out of both. -Worker settings are supplied via flags (a local project config via 'runware -serverless init' is planned). Endpoints are derived server-side from the SDK -(code) or from container.yaml (container). +Worker settings are supplied via flags. Endpoints are derived server-side from +the SDK (code) or from container.yaml (container). ``` runware serverless deploy [file] [flags] diff --git a/docs/runware_serverless_dev.md b/docs/runware_serverless_dev.md deleted file mode 100644 index c070958..0000000 --- a/docs/runware_serverless_dev.md +++ /dev/null @@ -1,37 +0,0 @@ -## runware serverless dev - -Run a serverless application locally for development - -``` -runware serverless dev [file] [flags] -``` - -### Examples - -``` - # run the project entrypoint locally - runware serverless dev - - # run a specific Python file - runware serverless dev ./app.py -``` - -### Options - -``` - -h, --help help for dev -``` - -### Options inherited from parent commands - -``` - --debug Show full debug output - -F, --format string CLI output format: table, json, yaml (default "table") - --transport string Transport protocol: ws (WebSocket) or http (REST) (default "ws") - -v, --verbose Show request/response details -``` - -### SEE ALSO - -* [runware serverless](runware_serverless.md) - Manage Runware serverless applications - diff --git a/docs/runware_serverless_init.md b/docs/runware_serverless_init.md deleted file mode 100644 index 1610446..0000000 --- a/docs/runware_serverless_init.md +++ /dev/null @@ -1,37 +0,0 @@ -## runware serverless init - -Initialize a new serverless project - -``` -runware serverless init [name] [flags] -``` - -### Examples - -``` - # scaffold a new serverless project in the current directory - runware serverless init - - # scaffold a project with a specific name - runware serverless init my-app -``` - -### Options - -``` - -h, --help help for init -``` - -### Options inherited from parent commands - -``` - --debug Show full debug output - -F, --format string CLI output format: table, json, yaml (default "table") - --transport string Transport protocol: ws (WebSocket) or http (REST) (default "ws") - -v, --verbose Show request/response details -``` - -### SEE ALSO - -* [runware serverless](runware_serverless.md) - Manage Runware serverless applications - diff --git a/internal/cmd/serverless/deploy.go b/internal/cmd/serverless/deploy.go index 1ed4c22..04b9489 100644 --- a/internal/cmd/serverless/deploy.go +++ b/internal/cmd/serverless/deploy.go @@ -153,9 +153,8 @@ sandbox whose filesystem is part of the checkpointed state, so an unmounted download is copied into every checkpoint and fetched again on every cold start. A volume keeps it out of both. -Worker settings are supplied via flags (a local project config via 'runware -serverless init' is planned). Endpoints are derived server-side from the SDK -(code) or from container.yaml (container).`, +Worker settings are supplied via flags. Endpoints are derived server-side from +the SDK (code) or from container.yaml (container).`, Example: ` # deploy the current directory, with app.py as the entry point runware serverless deploy ./app.py --id my-app --gpu-type h100 diff --git a/internal/cmd/serverless/dev.go b/internal/cmd/serverless/dev.go deleted file mode 100644 index ab63121..0000000 --- a/internal/cmd/serverless/dev.go +++ /dev/null @@ -1,16 +0,0 @@ -package serverless - -import "github.com/spf13/cobra" - -func newDevCmd() *cobra.Command { - return stubLeaf( - "dev [file]", - "Run a serverless application locally for development", - ` # run the project entrypoint locally - runware serverless dev - - # run a specific Python file - runware serverless dev ./app.py`, - cobra.MaximumNArgs(1), - ) -} diff --git a/internal/cmd/serverless/init.go b/internal/cmd/serverless/init.go deleted file mode 100644 index c43cacf..0000000 --- a/internal/cmd/serverless/init.go +++ /dev/null @@ -1,16 +0,0 @@ -package serverless - -import "github.com/spf13/cobra" - -func newInitCmd() *cobra.Command { - return stubLeaf( - "init [name]", - "Initialize a new serverless project", - ` # scaffold a new serverless project in the current directory - runware serverless init - - # scaffold a project with a specific name - runware serverless init my-app`, - cobra.MaximumNArgs(1), - ) -} diff --git a/internal/cmd/serverless/serverless.go b/internal/cmd/serverless/serverless.go index 832bee8..e9a06f6 100644 --- a/internal/cmd/serverless/serverless.go +++ b/internal/cmd/serverless/serverless.go @@ -15,8 +15,6 @@ func NewCmd(logger *log.Logger) *cobra.Command { Long: "Deploy, monitor, and manage Runware serverless applications on the platform", } cmd.AddCommand( - newInitCmd(), - newDevCmd(), newDeployCmd(logger), newUsageCmd(), newGPUsCmd(logger),