Move OS specific code in cmd_utils
Move some OS specific code into separate file and enable it by build tag only for expected os, for other OS it return error as not implemented
Currently it's expected to work only for linux and those errors just a stub to pass build on win and mac platforms.
BUG=b:31254126
TEST=go build and GOOS=windows go build
Change-Id: I32256937a230b0d4714c8a5c1887a8275993f6e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/6252625
Commit-Queue: Alexandr Astrouski <astrouski@google.com>
Reviewed-by: Jason Stanko <jstanko@google.com>
Tested-by: Alexandr Astrouski <astrouski@google.com>
5 files changed