Skip to content

Commit

Permalink
feat: 'env' task is renamed to 'wrapper'
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Jan 9, 2024
1 parent c35f331 commit 23ab53e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import psychopath.File;
import psychopath.Locator;

public class Env extends Task {
public class Wrapper extends Task {

/** Specify the bee version. */
protected String version = Bee.Tool.getVersion();
Expand Down Expand Up @@ -87,8 +87,8 @@ public void use() {

@Command("Clean local bee environment.")
public void clean() {
deleteFile("bee");
deleteFile("bee.bat");
deleteFile("bew");
deleteFile("bew.bat");
deleteLocalFars();

ui.info("Remove the local bee environment. From now on, you will use Bee installed at [", Platform.Bee, "].");
Expand Down Expand Up @@ -150,8 +150,8 @@ private void build(String version) {
java -javaagent:"$bee" -cp "$bee" bee.Bee "$@"
""", context);

makeFile("bee.bat", bat);
makeFile("bee", sh);
makeFile("bew.bat", bat);
makeFile("bew", sh);

ui.info("From now on, the bee command used in this directory will be fixed to version [", version, "].");
ui.info("To clear this setting, execute the command [bee env:clean].");
Expand Down

0 comments on commit 23ab53e

Please sign in to comment.