Skip to content

Commit 4c4a80d

Browse files
committed
Merge pull request #63 from digitalocean/windows-specific-funcs
Allow for windows specific code
2 parents 99f25c8 + 509cdf7 commit 4c4a80d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+5398
-6
lines changed

appveyor.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: "{build}"
2+
3+
os: Windows Server 2012 R2
4+
5+
clone_folder: c:\gopath\src\github.com\digitalocean\doctl
6+
7+
environment:
8+
GOPATH: c:\gopath
9+
10+
install:
11+
- echo %CD%
12+
- echo %PATH%
13+
- echo %GOPATH%
14+
- go version
15+
- go env
16+
17+
build_script:
18+
- go test -v -cover ./cmd/... ./commands/... ./do/... ./install/... ./pkg/... ./pluginhost/... .

commands/doit.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ func initConfig() {
9696

9797
}
9898

99-
func homeDir() string {
100-
return os.Getenv("HOME")
101-
}
102-
10399
// Execute executes the current command using DoitCmd.
104100
func Execute() {
105101
if err := DoitCmd.Execute(); err != nil {

commands/util.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// +build !windows
2+
3+
package commands
4+
5+
import "os"
6+
7+
func homeDir() string {
8+
return os.Getenv("HOME")
9+
}

commands/commands_windows.go renamed to commands/util_win.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build windows
2+
13
package commands
24

35
import "os"

commmand_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build !windows
2+
13
/*
24
Copyright 2016 The Doctl Authors All rights reserved.
35
Licensed under the Apache License, Version 2.0 (the "License");

vendor/github.com/Azure/go-ansiterm/LICENSE

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/Azure/go-ansiterm/constants.go

Lines changed: 188 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/Azure/go-ansiterm/context.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/Azure/go-ansiterm/csi_entry_state.go

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/Azure/go-ansiterm/csi_param_state.go

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)