Remove "env" first parameter to command functions

RESOLVED FIXED in 0.9

Status

Skywriter
Command Line
P1
critical
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: Kevin Dangoor, Assigned: Kevin Dangoor)

Tracking

Trunk
x86
Mac OS X

Details

(Assignee)

Description

8 years ago
It turns out that the way the environment has ended up working, we don't need to pass in env as a separate parameter to command functions. So, we're going to change to a format like this:

1. at the top of a file with commands:

var env = require("environment").env;

2. make sure you specify in plugin metadata which objects your plugin will need from the environment if you're using the environment at the module level

command functions just take (args, request) now.
(Assignee)

Comment 1

8 years ago
Done in 57841c38721d
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.