summaryrefslogtreecommitdiff
path: root/go/internal/command/commandargs/generic_args.go
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2019-08-02 16:10:17 +0800
committerPatrick Bajao <ebajao@gitlab.com>2019-08-02 16:10:17 +0800
commit3b6f9f7583755e041e76142d7caf7716937907fa (patch)
treeed7f7281633d97933e4465a2ac0f86d62c9a216e /go/internal/command/commandargs/generic_args.go
parent592823d5e25006331b361b36cc61df7802fc1938 (diff)
downloadgitlab-shell-3b6f9f7583755e041e76142d7caf7716937907fa.tar.gz
This struct is responsible for determining the name and root dir of the executable. The `RootDir` property will be used to find the config. The `Name` property will be used to determine what `Command` and `CommandArgs` to be built.
Diffstat (limited to 'go/internal/command/commandargs/generic_args.go')
-rw-r--r--go/internal/command/commandargs/generic_args.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/go/internal/command/commandargs/generic_args.go b/go/internal/command/commandargs/generic_args.go
new file mode 100644
index 0000000..96bed99
--- /dev/null
+++ b/go/internal/command/commandargs/generic_args.go
@@ -0,0 +1,14 @@
+package commandargs
+
+type GenericArgs struct {
+ Arguments []string
+}
+
+func (b *GenericArgs) Parse() error {
+ // Do nothing
+ return nil
+}
+
+func (b *GenericArgs) GetArguments() []string {
+ return b.Arguments
+}