Skip to content

Commit

Permalink
Move arguments to internal/arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelStrother authored and mroth committed Feb 15, 2020
1 parent 38698d3 commit c7c6582
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commands/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"os/exec"

"github.com/mroth/scmpuff/commands/arguments"
"github.com/mroth/scmpuff/commands/internal/arguments"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion commands/expand/expand.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"strings"

"github.com/mroth/scmpuff/commands/arguments"
"github.com/mroth/scmpuff/commands/internal/arguments"
"github.com/spf13/cobra"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Package arguments contains shared functions for expanding
// numeric arguments to the associated file names
package arguments

import (
Expand All @@ -10,7 +12,7 @@ import (
var expandArgDigitMatcher = regexp.MustCompile("^[0-9]{0,4}$")
var expandArgRangeMatcher = regexp.MustCompile("^([0-9]+)-([0-9]+)$")

// Evaluates a string of arguments and expands environment variables.
// EvaluateEnvironment evaluates a string of arguments and expands environment variables.
func EvaluateEnvironment(arg string, expandRelative bool) string {
expandedArg := os.ExpandEnv(arg)
if expandRelative {
Expand Down
File renamed without changes.

0 comments on commit c7c6582

Please sign in to comment.