Skip to content

Commit

Permalink
Merge 9a53936 into 81bddcd
Browse files Browse the repository at this point in the history
  • Loading branch information
rithvikvibhu committed Aug 2, 2023
2 parents 81bddcd + 9a53936 commit f88cb28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 47 deletions.
6 changes: 3 additions & 3 deletions bin/cli
Expand Up @@ -4,11 +4,11 @@

console.error('%s%s',
'Warning: The `hsd cli` interface is deprecated.\n',
'Please use `hsd-cli` ($ npm install hs-client).');
'Please use `hsd-cli` and `hsw-cli`.\n');

if (process.argv.length > 2 && process.argv[2] === 'wallet') {
process.argv.splice(2, 1); // Evil hack.
require('hs-client/bin/hsw-cli');
require('./hsw-cli');
} else {
require('hs-client/bin/hsd-cli');
require('./hsd-cli');
}
26 changes: 4 additions & 22 deletions bin/hsd-rpc
@@ -1,23 +1,5 @@
#!/bin/sh
#!/usr/bin/env node

# NOTE: This is part of generated `hs-client`.

rl=0

if ! type perl > /dev/null 2>& 1; then
if uname | grep -i 'darwin' > /dev/null; then
echo 'hsd-rpc requires perl to start on OSX.' >& 2
exit 1
fi
rl=1
fi

if test $rl -eq 1; then
file=$(readlink -f "$0")
else
file=$(perl -MCwd -e "print Cwd::realpath('$0')")
fi

dir=$(dirname "$file")

exec "${dir}/hsd-cli" rpc "$@"
// insert `rpc` as first argument
process.argv.splice(2, 0, 'rpc');
require('./hsd-cli');
26 changes: 4 additions & 22 deletions bin/hsw-rpc
@@ -1,23 +1,5 @@
#!/bin/sh
#!/usr/bin/env node

# NOTE: This is part of generated `hs-client`.

rl=0

if ! type perl > /dev/null 2>& 1; then
if uname | grep -i 'darwin' > /dev/null; then
echo 'hsw-rpc requires perl to start on OSX.' >& 2
exit 1
fi
rl=1
fi

if test $rl -eq 1; then
file=$(readlink -f "$0")
else
file=$(perl -MCwd -e "print Cwd::realpath('$0')")
fi

dir=$(dirname "$file")

exec "${dir}/hsw-cli" rpc "$@"
// insert `rpc` as first argument
process.argv.splice(2, 0, 'rpc');
require('./hsw-cli');

0 comments on commit f88cb28

Please sign in to comment.