Skip to content

Instantly share code, notes, and snippets.

View bfitzpat's full-sized avatar

Brian Fitzpatrick bfitzpat

  • Red Hat, Inc.
  • Colorado
View GitHub Profile
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*

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

This doesn't work currently to check the requirement, so am diving deeper

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 works just fine and I have no idea why

Apache Maven is accessible at the command line{.didact}

# This doesn't work currently to check the requirement, so am diving deeper
You should be able to use this link [to check to see if Apache Camel K is accessible at the command line](didact://?commandId=vscode.didact.requirementCheck&text=camel-k-requirements-status$$kamel%20version$$Apache%20Camel%20K&completion=Apache%20Camel%20K%20is%20available%20on%20this%20system.&error=Camel%20K%20CLI%20not%20available "Tests to see if kamel version returns a result"){.didact} It should then update the following status.
*Status: unknown*{#camel-k-requirements-status}
# This works
You could use [this link to open a new terminal called 'camel-k-term' and try the `kamel version` command.](didact://?commandId=vscode.didact.sendNamedTerminalAString&text=camel-k-term$$kamel%20version&completion=Opened%20the%20file-copy-term%20terminal. "Opens a new terminal called 'camel-k-term' and tries `kamel version`"){.didact}
function getCurrentFolder(): Promise<string> {
return new Promise(async (resolve, reject) => {
await vscode.commands.executeCommand('workbench.view.explorer').then( async () => {
await vscode.commands.executeCommand('copyFilePath').then(async () => {
try {
await vscode.env.clipboard.readText().then((copyPath) => {
try {
if (fs.existsSync(copyPath)) {
resolve(copyPath);
return copyPath;
function getCurrentFolder(): Promise<string> {
return new Promise((resolve, reject) => {
vscode.commands.executeCommand('copyFilePath').then(async () => {
try {
await vscode.env.clipboard.readText().then((copyPath) => {
try {
if (fs.existsSync(copyPath)) {
resolve(copyPath);
return copyPath;
}
[bfitzpat@localhost camelk]$ kubectl log -f camel-k-operator-676999f5bc-tsgwf
log is DEPRECATED and will be removed in a future version. Use logs instead.
{"level":"info","ts":1557327028.3275127,"logger":"cmd","msg":"Go Version: go1.10"}
{"level":"info","ts":1557327028.3275414,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1557327028.327547,"logger":"cmd","msg":"operator-sdk Version: v0.7.0"}
{"level":"info","ts":1557327028.327649,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1557327028.354964,"logger":"leader","msg":"No pre-existing lock was found."}
{"level":"info","ts":1557327028.3582475,"logger":"leader","msg":"Became the leader."}
{"level":"info","ts":1557327028.371369,"logger":"cmd","msg":"Registering Components."}
{"level":"info","ts":1557327028.3825922,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"build-controller","source":"kind source: /, Kind="}
@bfitzpat
bfitzpat / extension.ts
Created February 13, 2019 21:07
Updated to make it work with the output channel - but it's not finding the jar
'use strict';
import * as child_process from 'child_process';
import * as fs from 'fs-extra';
import * as path from 'path';
import * as requirements from './requirements';
import * as vscode from 'vscode';
import * as fileUrl from 'file-url';
const options: vscode.OpenDialogOptions = {
brianf@brianf-work MINGW64 ~/Documents/GitHub/vscode-yeoman (issue1-initial-tests)
$ vsce package
Executing prepublish script 'npm run vscode:prepublish'...
> yo@0.9.5 vscode:prepublish c:\Users\brianf\Documents\GitHub\vscode-yeoman
> npm run compile
> yo@0.9.5 compile c:\Users\brianf\Documents\GitHub\vscode-yeoman
> tsc -p ./
$ yo camel-project
_ _
/ \ _ __ __ _ ___ | |__ ___
/ _ \ | '_ \ / _` | / __| | '_ \ / _ \
/ ___ \ | |_) | | (_| | | (__ | | | | | __/
/_/ \_\ | .__/ \__,_| \___| |_| |_| \___|
|_|
____ _
/ ___| __ _ _ __ ___ ___ | |
| | / _` | | '_ ` _ \ / _ \ | |