Skip to content
Snippets Groups Projects

Add 'gdk' command wrapper and gem

Merged Jacob Vosmaer (GitLab) requested to merge gdk-cli into master
1 unresolved thread
2 files
+ 9
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 8
1
@@ -4,7 +4,14 @@ require 'fileutils'
@@ -4,7 +4,14 @@ require 'fileutils'
def main
def main
case ARGV.first
case ARGV.first
when 'init'
when 'init'
system(*%W(git clone -b gdk-cli https://gitlab.com/gitlab-org/gitlab-development-kit.git))
if ARGV.count > 2
 
puts "Usage: gdk init [DIR]"
 
return false
 
end
 
 
cmd = %W(git clone -b gdk-cli https://gitlab.com/gitlab-org/gitlab-development-kit.git)
 
cmd << ARGV[1] if ARGV.count == 2
 
system(*cmd)
else
else
$gdk_root = find_root(Dir.pwd)
$gdk_root = find_root(Dir.pwd)
if $gdk_root.nil?
if $gdk_root.nil?
Loading