-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* $File: exec-path.js $ | ||
* $Date: 2022-03-20 02:45:07 $ | ||
* $Revision: $ | ||
* $Creator: Jen-Chieh Shen $ | ||
* $Notice: See LICENSE.txt for modification and distribution information | ||
* Copyright © 2022 by Shen, Jen-Chieh $ | ||
*/ | ||
|
||
"use strict"; | ||
|
||
const util = require("../src/util"); | ||
|
||
exports.command = 'exec-path'; | ||
exports.desc = 'print the exec-path from workspace'; | ||
|
||
exports.handler = async ({}) => { | ||
await util.e_call('exec-path'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
;;; exec-path.el --- Print the exec-path from workspace -*- lexical-binding: t; -*- | ||
|
||
;;; Commentary: | ||
;; | ||
;; Print the exec-path from workspace | ||
;; | ||
;; $ eask exec-path | ||
;; | ||
|
||
;;; Code: | ||
|
||
(load-file (expand-file-name | ||
"_prepare.el" | ||
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))) | ||
|
||
(defun eask--print-exec-path (path) | ||
"Print out the PATH." | ||
(message "%s" path)) | ||
|
||
(eask-start | ||
(eask-pkg-init) | ||
(eask--add-bin-exec-path) | ||
(mapc #'eask--print-exec-path exec-path)) | ||
|
||
;;; exec-path.el ends here |