Skip to content

Commit

Permalink
Extended edit mode by adding restart command.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Aug 10, 2024
1 parent 84250c8 commit a405625
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- they use monitoring files
- monitoring can be disabled via `options.watcher = false` in the start script
- improved watcher interval for a long-term process
- extended `edit` mode:
- added `restart` command

========================
0.0.5
Expand Down
1 change: 1 addition & 0 deletions debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ function runwatching() {

restart();
refresh_directory();
F.restart = restart;
}

var filename = F.Path.join(process.cwd(), PIDNAME);
Expand Down
10 changes: 10 additions & 0 deletions edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ F.newaction('editor', {
browse($, model);
break;

// Restart
case 'restart':
restart($);
break;

// Download
case 'download':
download($, model);
Expand Down Expand Up @@ -247,6 +252,11 @@ function load($, model) {
});
}

function restart($) {
F.restart();
$.success();
}

function save($, model) {

// Tries to create a folder
Expand Down

0 comments on commit a405625

Please sign in to comment.