You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of script list gets a bit messy when there are larger/longer scripts present
Example:
➜ ~ vultr-cli script list
SCRIPTID DATE CREATED DATE MODIFIED TYPE NAME SCRIPT
565344 2019-08-06 22:01:58 2019-08-06 22:16:16 boot b #!/bin/sh
cd ~
touch hello.txt
touch againagain.txt
565345 2019-08-06 22:02:20 2019-08-06 22:02:20 pxe p #!ipxe
# NOTE: This is an example that boots CoreOS. You'd need to add your SSH key before this would work
set base-url http://stable.release.core-os.net/amd64-usr/current
kernel ${base-url}/coreos_production_pxe.vmlinuz sshkey="ssh-rsa AAAA..." cloud-config-url=http://169.254.169.254/2014-09-12/coreos-init
initrd ${base-url}/coreos_production_pxe_image.cpio.gz
boot
You lose a bit of visibility into the information about the script itself. We should try to clean this up where we move the script contents into its own command.
So script list should be cleaned up to look something like this:
➜ ~ vultr-cli script list
SCRIPTID DATE CREATED DATE MODIFIED TYPE NAME
565344 2019-08-06 22:01:58 2019-08-06 22:16:16 boot b
565345 2019-08-06 22:02:20 2019-08-06 22:02:20 pxe p
We remove the script field from this call.
Now we should introduce a new command vultr-cli script [script_id] or vultr-cli script [script_id] contents/list
Not entirely sure what the best sub-command will be for this. Either way the goal here is to allow users to see the contents of their script
The text was updated successfully, but these errors were encountered:
The current implementation of
script list
gets a bit messy when there are larger/longer scripts presentExample:
You lose a bit of visibility into the information about the script itself. We should try to clean this up where we move the script contents into its own command.
So
script list
should be cleaned up to look something like this:We remove the
script
field from this call.Now we should introduce a new command
vultr-cli script [script_id]
orvultr-cli script [script_id] contents/list
Not entirely sure what the best sub-command will be for this. Either way the goal here is to allow users to see the contents of their script
The text was updated successfully, but these errors were encountered: