Code Monkey home page Code Monkey logo

vscode-invoke's Introduction

Visual Studio Code extension for Invoke

Invoke is a Python (2.7 and 3.4+) task execution tool & library, drawing inspiration from various sources to arrive at a powerful & clean feature set.

This VS Code extension lets you execute tasks directly from your editor.

Features

Use the command palette (CMD + SHIFT + P) and type invoke. Once you call the extension, a list of all tasks available will be displayed. Select the one you want to run. If your task requires any argument you can specify them next.

Which tasks.py file is used?

This extension will make best effort to use the proper tasks.py file:

  • If a file is open in the editor, the extension will look for a tasks.py file at the top level of the folder that file is in
  • Otherwise the extension will use the first tasks.py file found at the top level of the folders in the Workspace.

Requirements

Invoke needs to be installed on your system. If the invoke command is not available in your path you can use the user settings variable vsc-invoke.invoke.cmd to define the path where invoke lives. This is the path to the invoke command (including invoke itself) that a shell should know to execute. This alaso allows you to specify a different name for the invoke command if it is installed under a different name on your system (e.g. Invoke.py)

0.0.1

Initial release

0.0.2

Documentation improvements

0.0.3

Documentation improvements

0.0.4

Added debug info to display error when failing to load tasks

0.0.5

Added logic to try to discover a tasks.py file when there are multiple folders in the Workspace

0.0.6

Introduced used setting vsc-invoke.invoke.path to define path to invoke command if it's not available in your path

0.0.7

Rename vsc-invoke.invoke.path to vsc-invole.invoke.cmd to include the full path to invoke. Fixed a few gugs.

0.0.8

Requires invoke version 1.x or better (technically 0.23.0 or better will work) to leverage the new JSON output format for tasks list

0.0.9

Handles more complex tasks definition that use collections

0.0.10

Add support for tasks package/collection

0.0.11

Better support for Windows (handling of files path)

0.0.12

Better handling of collections

vscode-invoke's People

Contributors

dchancogne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

vscode-invoke's Issues

Unable to get list of tasks leads to being unable to invoke anything. Commandline works.

Everytime I try to use this plugin I get the following:

image

But then I can't invoke anything.

I had mentioned this on the Q&A for the plugin and someone mentioned that I might be using the wrong version of invoke, but the output for --list-format=json seems to work:

invoke --list-format=json --list
{"name": "tasks", "help": null, "default": null, "tasks": [{"name": "docker-push", "help": "Push the docker images to docker, building them if necessary ", "aliases": []}], "collections": []}

How do I use my invoke from virtual environment?

Hello, I'd like to know how I can use invoke from my virtual environment. I tried using "$VIRTUAL_ENV/bin/invoke" but to no aval, even setting the full path I got the following message:

/bin/sh: 1: invoke: not found

Add a section in VSCode with the tasks found

VSCode extensions have the capability to add a section in the area where Terminal, Problems and Output are, and the same content can exist as a section int he Explorer sidebar. What I request is to expose the results from "Invoke a task" into clickable items in a area so that I can go to the tab or in Explorer, a Tasks section with the results in there, ready to be clicked.
I wouldn't mind if the parameters popup shows, at least this way is faster.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.