You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openserverless.apache.org by "wtfzambo (via GitHub)" <gi...@apache.org> on 2025/05/02 10:37:54 UTC

[I] [Feature Request][CLI]: `ops ide undeploy` with no args should remove only actions of the current project. [openserverless]

wtfzambo opened a new issue, #117:
URL: https://github.com/apache/openserverless/issues/117

   ## Why you need it?
   Currently, running `ops ide undeploy` with no args removes ALL the packages associated with the login account. This is inconvenient if one has separate projects.
   
   Ideally, `ops ide undeploy` with no args should remove only the packages in the currently open project, and return an error if ran in a directory with no Openserverless project in it.
   
   ## How it could be?
   A simple solution is to generate a text file in the current directory when running `ops ide deploy` containing information on the deployed packages / actions.
   
   So for instance, if project is like this:
   ```
   .
   ├── web
   └── packages
       ├── foo
       │   ├── hello
       │   └── world
       ├── bar
       │   └── some_action
       └── baz
   ```
   
   The file could be something like this, put into an `.ops` folder at the root of the project.
   
   ```json
   {
       "packages": {
           "foo": [
               "hello",
               "world"
           ],
           "bar": [
               "some_action"
           ],
           "baz": []
       }
   }
   ```
   
   Then, when running `ops ide undeploy` with no args, read the above file and undeploy only the actions listed there, almost as if running `ops ide undeploy package/action1 package/action2 etc...`.
   
   ## Other related information
   Nothing to add so far.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [TASK]: `ops ide undeploy` with no args should remove only actions of the current project. [openserverless]

Posted by "sciabarracom (via GitHub)" <gi...@apache.org>.
sciabarracom closed issue #117: [TASK]: `ops ide undeploy` with no args should remove only actions of the current project.
URL: https://github.com/apache/openserverless/issues/117


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org