Commit Graph

60 Commits

Author SHA1 Message Date
Jeff Carr e24c2c2eb3 go.wit.com/log change
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-10 18:39:58 -06:00
Jeff Carr 096a4b17d1 more log() cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 20:52:42 -06:00
Jeff Carr cfd827bbdd use same name for github everywhere
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 20:14:38 -06:00
Jeff Carr 8d7fc91f65 oops + bump version
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 20:07:49 -06:00
Jeff Carr 3233c9d6ab use 'go.wit.com/log'
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-01-05 20:01:07 -06:00
Jeff Carr 25715e30ee fix github sync syntax
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-20 15:09:20 -06:00
Jeff Carr 5e5e8466fe sync'd to github mirror
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-20 14:57:01 -06:00
Jeff Carr a329d9de9d move to go.wit.com/shell
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-12-20 14:46:13 -06:00
Jeff Carr ce748973b9 wrong URL's & no LICENSE file (ya, now there are 2. deal with it)
Signed-off-by: Jeff Carr <jcarr@wit.com>
2023-02-10 15:56:10 -06:00
Jeff Carr 1b08d999eb MAKE: update Makefile rules
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-11-03 17:38:50 -05:00
Jeff Carr ad28138b84 BUILD: update import paths
Signed-off-by: Jeff Carr <jcarr@wit.com>
2021-08-09 00:38:06 -05:00
Jeff Carr cfd1909e16 unlink()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-16 13:35:32 -07:00
Jeff Carr f2fa2c1d31 trim null
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-16 12:49:05 -07:00
Jeff Carr 5d4ad13b77 track cmd failures
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-16 11:59:40 -07:00
Jeff Carr 2e37ee24f7 use standard log
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-16 10:54:45 -07:00
Jeff Carr 30d3fe09b5 smarter go syntax for Run()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-16 10:49:01 -07:00
Jeff Carr 3fadcf18a6 quiet Chomp() debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-15 19:17:37 -07:00
Jeff Carr 2806f41841 a new struct to track file handles for processes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-15 16:37:05 -07:00
Jeff Carr a3042062d8 add a File struct
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-15 14:45:09 -07:00
Jeff Carr 460baa0559 show err
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-15 00:27:15 -07:00
Jeff Carr a0db57edd2 more md5sum() debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 20:35:45 -07:00
Jeff Carr 8d1122b534 add shell.Cat()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 19:05:17 -07:00
Jeff Carr 2dc091f5bc import log
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 18:49:54 -07:00
Jeff Carr 6bfa200482 more debugging on replace
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 18:49:17 -07:00
Jeff Carr 177e665244 debugging for Write()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 18:45:05 -07:00
Jeff Carr d1ed400854 go-ssh workarounds for easier code automation
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 17:53:04 -07:00
Jeff Carr ee9a683f8c fix paths on Write()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 16:08:44 -07:00
Jeff Carr 9648439950 add a path wrapper for Windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 16:06:32 -07:00
Jeff Carr 621be7d20a updates to Exec()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 10:02:52 -07:00
Jeff Carr 60671c1308 add linux / windows build files
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-14 04:20:29 -07:00
Jeff Carr 437afc794c more on windows/cygwin
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 20:29:29 -07:00
Jeff Carr db4ffc0fa9 more ssh tests
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 20:26:04 -07:00
Jeff Carr 49d36e287d start handling stupid Windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 19:31:37 -07:00
Jeff Carr b375aa752a start adding ssh support
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-13 18:41:41 -07:00
Jeff Carr 4736714c08 add shell.Exec() to execute and never return
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-09 14:29:50 -07:00
Jeff Carr df1460aa69 only return wget on 200
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-07 09:38:27 -07:00
Jeff Carr 8c2168f588 also print STDERR to STDOUT
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-07 09:14:21 -07:00
Jeff Carr 2fcc7947db add a quiet flag and some other fixes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-07 01:15:37 -07:00
Jeff Carr b56c3fe1f6 quiet output
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-07 00:36:46 -07:00
Jeff Carr 8db41cc911 always append \n when writing a file
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 21:27:31 -07:00
Jeff Carr a12da586e9 handle int64
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 20:55:21 -07:00
Jeff Carr 93d3e13acc move wget into here
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 20:02:53 -07:00
Jeff Carr 758e7d157b more shortcut commands
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 19:32:12 -07:00
Jeff Carr d86e39f9ed call the callback function if defined
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 16:15:31 -07:00
Jeff Carr 091f89c221 always call the internal errorHandler()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 16:12:59 -07:00
Jeff Carr f59e1b1f84 add perl 'chomp'. too lazy to make it correct with regex
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 15:59:49 -07:00
Jeff Carr d7a665031c test callback()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 13:02:16 -07:00
Jeff Carr 8e258d67a3 make a error handling callback function
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-06 09:34:47 -07:00
Jeff Carr 223938d4bf return the output correctly. set debug mode
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-05 01:28:15 -07:00
Jeff Carr 04029988b1 capture the output for Run()
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-06-04 20:20:15 -07:00