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

Adding separate CLI for MI #1681

Closed
4 tasks done
chanikag opened this issue Mar 30, 2023 · 4 comments · Fixed by wso2/product-apim-tooling#978
Closed
4 tasks done

Adding separate CLI for MI #1681

chanikag opened this issue Mar 30, 2023 · 4 comments · Fixed by wso2/product-apim-tooling#978

Comments

@chanikag
Copy link

chanikag commented Mar 30, 2023

Problem

Currently MI CLI is added inside APICTL. The requirement is to do a separate release of MI CLI. These are the sub tasks.

  • Add separate executables for MI CLI
  • Pack MI CLI functionalities inside MI CLI too while keeping APICTL in the same way
  • Test apictl and mictl executables
  • Documentation

Solution

Can be implemented by adding another interface on top of cli code base to make mi first class and release the build with an mi specific way.

Affected Component

MI

Version

No response

Implementation

No response

Related Issues

No response

Suggested Labels

No response

@chanikag
Copy link
Author

chanikag commented Apr 3, 2023

Currently

  • the separate executables are built for both MI and APIM CTL commands

Pending items:

  • Include auto completion script for MI and pack that
  • Test in all the platforms
  • Documentation

@chanikag
Copy link
Author

chanikag commented Apr 6, 2023

Update :
Auto completion scripts are added for MI and packed inside MI executable archives.
MI docs are generated

Issues:
When generating MI docs, it adds apictl command for example in most of the docs. This happens as we have hard coded the project name as apictl. Need to find a way to pass an argument or set a variable in runtime.

@chanikag
Copy link
Author

Update:
As a solution to the adding apictl command in examples of MI CLI docs, introduced an environment variable to separate apictl and mi flows.

@chanikag
Copy link
Author

The PR: wso2/product-apim-tooling#978
Tested on linux and mac
Documentation done - Prepared a google doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants