Skip to content

[TASK]: ops ide undeploy with no args should remove only actions of the current project. #117

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

Open
wtfzambo opened this issue May 2, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@wtfzambo
Copy link

wtfzambo commented May 2, 2025

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.

{
    "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.

@d4rkstar d4rkstar added the enhancement New feature or request label May 4, 2025
@d4rkstar d4rkstar changed the title [Feature Request][CLI]: ops ide undeploy with no args should remove only actions of the current project. [TASK]: ops ide undeploy with no args should remove only actions of the current project. May 4, 2025
@d4rkstar d4rkstar self-assigned this May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants