Skip to content

Automate parts of sharpen list and log output #118

@jonallured

Description

@jonallured

There are parts of the sharpening process that I could easily automate - things like updating brew and installing the latest vim plugins. What would make this even better would be to capture the output from those commands and add them as an issue comment. I've been poking at this today and here's some things I've found out:

jon@magneto:~/code/dotfiles(master+)% tmutil latestbackup
/Volumes/LACIE SETUP/Backups.backupdb/magneto/2019-06-04-104806
jon@magneto:~/code/dotfiles(master+)% bat issue.json --plain                                             
{
  "body": "hello from file"
}
10:59:43
jon@magneto:~/code/dotfiles(master+)% hub api repos/jonallured/dotfiles/issues/115/comments --input issue.json

So with something like verifying the latest timemachine backup, I could use the tmutil to find the latest backup, compare it's timestamp to now and then log that to issue. 😎

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions