Skip to content

Releases: IBM-Cloud/ibm-cloud-cli-sdk

v0.2.0

06 Jul 15:33
Compare
Choose a tag to compare

Change Logs

Plugin API changes:

  • Update PluginMetadata to support multiple aliases of plugin, namespace and command.
  • Update PluginContext.IsLoggedIn() to return true no matter user has logged in to IAM token service or UAA token service

Other changes:

  • Support new configuration directory ~/.ibmcloud (to replace ~/.bluemix in future)
  • Support environment variable prefix IBMCLOUD_ (to replace BLUEMIX_ in future)
  • Add CFEETargeted field in configuration file
  • Add plugin update check settings (UpdateCheckInterval, UpdateRetryCheckInterval, UpdateNotificationInterval) in configuration file
  • UAARepository returns InvalidGrantTypeError if error response of invalid_grant code is received.

v0.1.1

20 Apr 16:27
Compare
Choose a tag to compare

Change Logs

PluginContext API changes

  • New APIs
    - HasTargetedCF() to indicate whether the user has targeted Cloud Foundry
    - CF() returns the CFContext which has the following methods:
    • APIVersion(): returns the CF api version
    • APIEndpoint(): returns the CF api endpoint
    • HasAPIEndpoint(): indicates whether the CF has api endpoint set
    • DopplerEndpoint(): returns the CF doppler api endpoint
    • UAAEndpoint(): returns the CF UAA token service endpoint
    • IsLoggedIn(): indicates whether user has logged into CF
    • Username(): returns the user name of the CF UAA user
    • UserEmail(): returns the email of the CF UAA user
    • UserGUID(): returns the user guid of the CFF UAA user
    • UAAToken(): returns the UAA access token
    • UAARefreshToken(): returns the UAA refresh token
    • CurrentOrganization(): returns the current organization the user has targeted
    • HasTargetedOrganization(): indicates whether the user has targeted an organization
    • CurrentSpace(): returns the current space the user has targeted
    • HasTargetedSpace(): indicates whether the user has targeted a space
  • Updated APIs
    • IsLoggedIn() only checks whether the user has logged in IBM Cloud. Use CF().IsLoggedIn() to check whether the user has logged in CF
    • Region() changed to CurrentRegion()
    • Account() changed to CurrentAccount()
    • ResourceGroup() changed to CurrentResourceGroup()
    • Organization() changed to CF().CurrentOrganization()
    • HasOrganization() changed to CF().HasTargetedOrganization()
    • Space() changed to CF().CurrentSpace()
    • HasSpace() changed to CF().HasTargetedSpace()
  • Deleted APIs
    - Username(), given username is not retrievable from IAM token
    - UserGUID(), given userGUID is not retrievable from IAM token

Other changes

  • Command meta data adds Hidden field to hide the command when showing help message
  • Developer guide adds API doc link
  • trace logger sanitizes X-Auth* header and token in request body
  • SDK version is now stored in config file of the plugin

Defect fixing

  • incorrect padding for cells with unicode
  • terminal issue for ssh on ppc64le
  • ui.Failed() prints message to trace logger
  • skip-ssl-validation setting not picked by cf config