Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
add nile clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Jan 23, 2022
1 parent 2a9520d commit 9d56f7e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 0.0.13

Nile integration.

## 0.0.12

Code completion for module names and function/struct imports.
Expand Down
6 changes: 6 additions & 0 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ function registerCommands(context: ExtensionContext, nileUseVenv: boolean, nileV
});
context.subscriptions.push(compileAllCommand);

const cleanCommand = commands.registerCommand('nile.clean', () => {
terminal.show();
terminal.sendText(commandPrefix + "nile clean");
});
context.subscriptions.push(cleanCommand);

const runCommand = commands.registerCommand('pytest', () => {
terminal.show();
terminal.sendText(commandPrefix + "pytest");
Expand Down
30 changes: 12 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,6 @@
"type": "string",
"default": ". env/bin/activate",
"description": "If nileUseVenv is true, this is the command used by the extension to source the virtual environment before running Nile commands."
},
"cairols.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server."
},
"cairols.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the Cairo language server."
}
}
},
Expand All @@ -100,6 +83,9 @@
{
"command": "nile.compile.all"
},
{
"command": "nile.clean"
},
{
"command": "pytest"
}
Expand All @@ -111,6 +97,9 @@
{
"command": "nile.compile.all"
},
{
"command": "nile.clean"
},
{
"command": "pytest"
}
Expand All @@ -120,13 +109,18 @@
{
"command": "nile.compile",
"category": "Language support for Cairo",
"title": "Nile - Compile"
"title": "Nile - Compile this contract"
},
{
"command": "nile.compile.all",
"category": "Language support for Cairo",
"title": "Nile - Compile all"
},
{
"command": "nile.clean",
"category": "Language support for Cairo",
"title": "Nile - Clean"
},
{
"command": "pytest",
"category": "Language support for Cairo",
Expand Down

0 comments on commit 9d56f7e

Please sign in to comment.