Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Write a golang cli #8

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

BenjaminMalley
Copy link

This is just a note that I've started work on a golang cli. I haven't done much, just install some dependencies and grabbed the spot price history. I'm going to tinker with it over the next week or so.

git-subtree-dir: vendor/github.com/urfave/cli
git-subtree-split: 3eb41f1bb122ac7535cc7b32db6b78b541879726
git-subtree-dir: vendor/github.com/aws/aws-sdk-go
git-subtree-split: 6c577e9e7b08a6d10bad1c9703227cd0403a8dd7
@DanielThomas
Copy link
Owner

Siiiick. You've picked up exactly the dependencies I'd earmarked, you'll want this guy for the WinRM stuff:

https://github.com/masterzen/winrm

Example usage in this project:

https://github.com/masterzen/winrm-cli

@DanielThomas
Copy link
Owner

DanielThomas commented Nov 1, 2016

WinRM example of using psexec to start a process that interacts with the console session:

bin/winrm -hostname 10.8.0.1 -username administrator -password <password> 'psexec -accepteula -i 1 -u administrator -p <password> cmd.exe /c start steam://'

We'll also be able to use it to do general bootstrap/housekeeping tasks:

bin/winrm -hostname 10.8.0.1 -username administrator -password <password> 'aws s3 sync Z:\Documents s3://etc...'

The prerequisite steps on the image being:

https://github.com/masterzen/winrm-cli#preparing-the-remote-windows-machine-for-basic-authentication

Idea is to move the stuff I was doing in a batch file locally into local commands, and add a steam command that can invoke any of the steam protocol commands:

https://developer.valvesoftware.com/wiki/Steam_browser_protocol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants