Coder Social home page Coder Social logo

tg-cli's People

Contributors

arthur-twingate avatar chenbishop avatar emrul avatar gbern-tg avatar rvanderp3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tg-cli's Issues

Since v0.0.54 "TypeError: Deno.setRaw is not a function” occurs.

It seems that binaries no longer work from v0.0.54.
It output "TypeError: Deno.setRaw is not a function”.

Expected Behavior

v0.0.53 zip.

$ tg --version
tg CLI Version: 0.0.53 | TwingateApiClient Version: 0.1.0
$ tg connector list
 ? Enter Twingate account: ›
 ❯ For example, 'acme' for 'acme.twingate.com'

Current Behavior

v0.0.54 zip.
Each command cannot be executed.

$ tg --version
tg CLI Version: 0.0.54 | TwingateApiClient Version: 0.1.0
$ tg connector list
 ? Enter Twingate account: › [ERROR]   Exception: TypeError: Deno.setRaw is not a function
    at Input.#readChar (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6179:18)
    at Input.#readKey (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6172:42)
    at Input.read (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6121:47)
    at Input.#execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6072:25)
    at async Input.prompt (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6058:20)
    at async PromptList.runPrompt (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7380:45)
    at async file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7312:17
    at async PromptList.runBeforeHook (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7368:9)
    at async PromptList.next (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7310:13)
    at async PromptList.run (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7305:9)
$

Exception: ReferenceError: encode is not defined

Getting the following error while deploying to OCI.

Reference - How to remotely access Oracle Cloud OCI without a VPN

[INFO]    Creating VM, please wait.
[ERROR]   Exception: ReferenceError: encode is not defined
    at OracleVmDeployer.createVm (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:78998:24)
    at OracleVmDeployer.deploy (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:79034:37)
    at eventLoopTick (ext:core/01_core.js:182:7)
    at async Command.fn (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:79065:28)
    at async Command.execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2536:13)
    at async main1 (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80721:12)
    at async file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80724:5

tg oci deploy error

Hi I run the command tg deploy oci vm and I get the error below:

tg deploy oci vm
[INFO]    Using Twingate account: 'xxxx'
[ERROR]   Exception: NotFound: No such file or directory (os error 2)
    at opRun (deno:runtime/js/40_process.js:29:16)
    at Object.run (deno:runtime/js/40_process.js:112:17)
    at execCmd (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:10304:20)
    at OracleVmDeployer.checkAvailable (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:76069:34)
    at OracleVmDeployer.deploy (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80891:20)
    at async OracleVmDeployer.deploy (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:81124:9)
    at async Command.fn (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:81172:28)
    at async Command.execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2493:13)
    at async Command.parse (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2313:20)
    at async main2 (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:82074:12)

Unable to revoke and remove service account keys

Currently it is possible to create service account keys but not possible to revoke and remove. It would be nice to have this ability in order to programmatically rotate service account keys.

CLI does not detect installed Digital Ocean CLI (doctl)

When attempting to do a deployment:

➜  ~ ./tg deploy do vm -a tenant --size s-1vcpu-512mb-10gb
[INFO]    Using Twingate account: 'tenant'
[ERROR]   'doctl' CLI not detected on path. Please check that it is installed.
[ERROR]   Exception: Error: 'doctl' CLI not detected on path. Please check that it is installed.
    at DigitalOceanDeployer.checkAvailable (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:72682:19)
    at async DigitalOceanDeployer.checkAvailable (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:77143:9)
    at async DigitalOceanDeployer.deploy (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:77394:9)
    at async Command.fn (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:77455:28)
    at async Command.execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2470:13)
    at async main2 (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:78840:12)
    at async file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:78843:5

The Digital Ocean CLI is installed, see below:

➜  ~ which doctl
/opt/homebrew/bin/doctl
➜  ~

doctl was installed with brew install doctl

`resource create` command doesn't recognize group name

I'm running the suggested command after using deploy do and am receiving the following error:

➜  ~ ./tg resource create "Digital Ocean (sfo3)" "Connector host tg-primitive-mayfly" "10.124.0.3" Everyone
[INFO]    Using Twingate account: 'tenant'
[ERROR]   Exception: Error: Could not find group: 'E'
    at Command.fn (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:10357:39)
    at async Command.execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2470:13)
    at async main2 (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80076:12)
    at async file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80079:5

I also tried enclosing "Everyone" in quotes, and the CLI returns with the same error message.

Error "error: Uncaught SyntaxError: The requested module 'https://deno.land/std/io/mod.ts' does not provide an export named " after building tg file

Trying to build tg on Ubuntu 20.04 using latest version of deno. Build completed but I get this error when trying to use command:

ascii@thinkpad-x1:~/git-repo/tg-cli$ ./tg --help
error: Uncaught SyntaxError: The requested module 'https://deno.land/std/io/mod.ts' does not provide an export named 'readerFromStreamReader'
import { readerFromStreamReader } from "https://deno.land/std/io/mod.ts";
         ^
    at <anonymous> (file:///home/ascii/git-repo/tg-cli/utils/smallUtilFuncs.mjs:294:10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.