summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO6
-rw-r--r--src/nbblib/commands.py13
2 files changed, 14 insertions, 5 deletions
diff --git a/TODO b/TODO
index 72589c4..73a5f3e 100644
--- a/TODO
+++ b/TODO
@@ -7,7 +7,6 @@ TODO: (to get git-amb equivalent functionality)
TODO: (Large list)
* Switch plugins.Foo.validate() functions to different protocol:
Either return or raise an exception.
- * supports execution of user commands in source, build, install dirs
* BS support: cmake, scons, ...
* VCS support: SVN, darcs, hg, ...
* Make automake's make depend on configure etc.
@@ -31,9 +30,14 @@ TODO: (Large list)
* start subshell in top_srcdir, builddir, installdir
* Bash syntax completion for that user interface.
* Man page or something similar. Generate from help texts?
+ * Command aliases:
+ run -> run-build
+ sh -> sh-build
+ make -> build (for automake, or similar mapping)
DONE:
* Implement *-sh and *-run commands.
+ * supports execution of user commands in source, build, install dirs
* Do not move command objects to plugin detection framework (bad idea!)
* Find or implement @abstractmethod decorator.
* Unify detect() methods.
diff --git a/src/nbblib/commands.py b/src/nbblib/commands.py
index c250cb1..3f8e4fd 100644
--- a/src/nbblib/commands.py
+++ b/src/nbblib/commands.py
@@ -267,7 +267,7 @@ class BuildTestCommand(SourceClassCommand):
class InitCommand(SourceClassCommand):
name = 'init'
- summary = 'initialize buildsystem'
+ summary = 'initialize buildsystem (e.g. "autoreconf")'
validate_args = Command.validate_args_none
def run(self):
self.bs_sourcetree.init()
@@ -275,7 +275,7 @@ class InitCommand(SourceClassCommand):
class ConfigureCommand(SourceClassCommand):
name = 'configure'
- summary = 'configure buildsystem'
+ summary = 'configure buildsystem (e.g. "./configure")'
validate_args = Command.validate_args_none
def run(self):
self.bs_sourcetree.configure()
@@ -283,7 +283,7 @@ class ConfigureCommand(SourceClassCommand):
class BuildCommand(SourceClassCommand):
name = 'build'
- summary = 'build from source'
+ summary = 'build from source (e.g. "make")'
validate_args = Command.validate_args_none
def run(self):
self.bs_sourcetree.build()
@@ -291,7 +291,7 @@ class BuildCommand(SourceClassCommand):
class InstallCommand(SourceClassCommand):
name = 'install'
- summary = 'install the built things'
+ summary = 'install the built things (e.g. "make install")'
validate_args = Command.validate_args_none
def run(self):
self.bs_sourcetree.install()
@@ -308,6 +308,11 @@ class MakeCommand(SourceClassCommand):
class GeneralRunCommand(SourceClassCommand):
+ """Run general command in some branch specific dir
+
+ Non-abstract derived classes MUST define run_in as one of
+ ['srcdir', 'builddir', 'installdir'].
+ """
name = None
summary = 'run some command in some dir'
validate_args = Command.validate_args_any