lib/autoproj/cli/main.rb in autoproj-2.0.0.b1 vs lib/autoproj/cli/main.rb in autoproj-2.0.0.b2
- old
+ new
@@ -39,10 +39,13 @@
desc 'bootstrap VCS_TYPE VCS_URL VCS_OPTIONS', 'bootstraps a new autoproj installation. This is usually not called directly, but called from the autoproj_bootstrap standalone script'
option :reuse,
banner: 'DIR',
desc: 'reuse packages already built within the DIR autoproj workspace in this installation, if DIR is not given, reuses the installation whose env.sh is currently sourced'
+ option :seed_config,
+ banner: 'SEED_CONFIG',
+ desc: "a configuration file used to seed the bootstrap's configuration"
def bootstrap(*args)
run_autoproj_cli(:bootstrap, :Bootstrap, Hash[], *args)
end
desc 'envsh', 'update the env.sh file'
@@ -114,10 +117,12 @@
end
desc 'cache CACHE_DIR', 'create or update a cache directory that can be given to AUTOBUILD_CACHE_DIR'
option :keep_going, aliases: :k,
desc: 'do not stop on errors'
+ option :checkout_only, aliases: :c, type: :boolean, default: false,
+ desc: "only checkout packages, do not update already-cached ones"
def cache(cache_dir)
run_autoproj_cli(:cache, :Cache, Hash[], cache_dir)
end
desc 'clean [PACKAGES]', 'remove build byproducts for the given packages'
@@ -126,9 +131,11 @@
def clean(*packages)
run_autoproj_cli(:clean, :Clean, Hash[], *packages)
end
desc 'locate [PACKAGE]', 'return the path to the given package, or the path to the root if no packages are given on the command line'
+ option :build, aliases: :b, type: :boolean,
+ desc: "outputs the package's build directory instead of its source directory"
def locate(package = nil)
run_autoproj_cli(:locate, :Locate, Hash[], *Array(package))
end
desc 'reconfigure', 'pass through all configuration questions'