Skip to content

Commit

Permalink
make function private
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 3, 2023
1 parent 41cf57e commit 29de063
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function escape_str(str) {
/**
* Return arguments after `--` in list.
*/
function rest_args() {
function _rest_args() {
let index = process.argv.indexOf('--');
if (index === -1)
return [];
Expand Down Expand Up @@ -129,7 +129,7 @@ function setup_env() {
process.env.EASK_INVOCATION = _invocation();
process.env.EASK_HOMEDIR = EASK_HOMEDIR;
if (IS_PKG) process.env.EASK_IS_PKG = IS_PKG;
process.env.EASK_REST_ARGS = rest_args();
process.env.EASK_REST_ARGS = _rest_args();

if (GITHUB_ACTIONS) {
/* XXX: isTTY flag will always be undefined in GitHub Actions; we will have
Expand Down Expand Up @@ -279,7 +279,6 @@ module.exports.slash = slash;

module.exports.escape_str = escape_str;
module.exports.cli_args = cli_args;
module.exports.rest_args = rest_args;
module.exports.plugin_dir = plugin_dir;
module.exports.def_flag = def_flag;
module.exports.setup_env = setup_env;
Expand Down

0 comments on commit 29de063

Please sign in to comment.