Skip to content

Commit

Permalink
Update customCommands.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlntv committed Jul 10, 2024
1 parent 7e15eab commit 7404df3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/commands/customCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export async function executeCustomCommand(term, command, args) {
}

if (activeCmd.action) {
console.log("trying action")
await executeAction(term, activeCmd.action, context)
} else {
showCommandHelp(term, command, subcommandName)
Expand Down Expand Up @@ -238,13 +237,9 @@ async function processActionItem(term, item, context, operation) {
} else if (typeof item === "object") {
if (item.setVariable) {
const variableName = item.setVariable
console.log(variableName)
console.log(item.value)

if (variableName in globalVariables) {
const value = interpolate(item.value, { ...context, globalVariables })
globalVariables[variableName] = value
console.log("global variables", globalVariables)
} else {
console.error(`Error: Attempt to set undefined global variable '${variableName}'`)
}
Expand Down

0 comments on commit 7404df3

Please sign in to comment.