Skip to content

Instantly share code, notes, and snippets.

@bfitzpat
Last active January 28, 2020 19:05
Show Gist options
  • Select an option

  • Save bfitzpat/da1c4f706263c96e17d8e1dd7b20df8b to your computer and use it in GitHub Desktop.

Select an option

Save bfitzpat/da1c4f706263c96e17d8e1dd7b20df8b to your computer and use it in GitHub Desktop.

This works now

You should be able to use this link to check to see if Apache Camel K is accessible at the command line{.didact} It should then update the following status.

Status: unknown{#camel-k-requirements-status}

This link breaks down as follows:

  • didact://?commandId=vscode.didact.requirementCheck - type of command we're using
  • text=camel-k-requirements-status$$kamel%20version$$Camel%20K%20Client
    • first part of the text field identifies the text area to update with the status change (unavailable, available, red/green, etc.) -- in this case, it's the *Status: unknown*{#camel-k-requirements-status} line that provides a place for that update to land
    • second part is the URL-encoded command to execute at the command line -- in this case kamel version
    • third part is the text to compare the results of that command to -- in this case, we want to check to see if it starts with Camel K Client
  • then we have a completion message that pops up on a success and an error message that pops up if it fails

This also works

You could also use this link to open a new terminal called 'camel-k-term' and try the kamel version command.{.didact}

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