Andrey Smirnov
318fc5b7f4
Merge branch 'script_run_command' of https://github.com/queeno/aptly into queeno-script_run_command
2014-08-23 22:04:50 +04:00
Simon Aquino
72e54aa3d1
Fixed a bug with the context switching
...
The context switching wasn't really happening. Now the issue is fixed.
2014-08-16 23:32:38 +00:00
Simon Aquino
91ff904ac4
Adding filename flag to specify task run filename.
...
Just realised commands can not have any subcommands and therefore
consist of single words (for example serve or version). Hence I can't
assume that if len(args)==1 then the user has entered the filename.
I have created the filename flag so the user is forced to specify it
when they wish to run aptly tasks from files.
2014-08-16 22:13:24 +00:00
Simon Aquino
b59471ad35
Added RunTask acceptance tests
...
Added a basic RunTask test to test the functionality of the new aptly
task run command. More to come...
2014-08-16 15:11:14 +00:00
Simon Aquino
6ff601f4a2
Making sure context is initialised before using it
...
Now checkong context is not nil before setting panicked = true
2014-08-16 14:33:36 +00:00
Simon Aquino
0c09bdedaa
Fixed t03_help:MainTest failing due to new cmd
2014-08-16 14:22:04 +00:00
Simon Aquino
dfc1f27d4c
Better wording for task run message.
2014-08-16 14:18:35 +00:00
Simon Aquino
005cee572e
Aptly script has now become aptly task
...
It makes more sense. Multiple lines of aptly commands can now be called
'aptly tasks' which could potentially be automated, in the future?
2014-08-16 14:14:56 +00:00
Simon Aquino
18e3ed5d64
aptly script run implementation
...
This new aptly command will allow to run multiple commands within a single
aptly command, running in a single thread. The commands can be included
in a text file or added to the aptly script run command in one line,
separated by comas ','.
If one command returns an error, then all the subsequent commands will
be skipped.
Each command output will appear on the console within coloured strings,
clearly stating which command is running and the start and the end of
the received output.
2014-08-16 13:55:13 +00:00
Simon Aquino
3c7696ef7e
Refactored main.go
...
The main function - whuch runs aptly commands - has been taken out from
main.go and included to the cmd package. This is useful for the aptly
script run command, which should use that behaviour.
2014-08-16 13:55:13 +00:00
Simon Aquino
b2779d7a88
Go-shellwords added to Gomfile
...
This packages allows us to parse shell commands. Useful for
script_run.go (later added)
2014-08-16 13:55:13 +00:00
Simon Aquino
cdd34b4759
Added panicked attribute to context.go
...
This attribute is set to false during initalisation, and it's set to
true when error arises.
2014-08-16 13:55:13 +00:00
Simon Aquino
1f2ddca32b
Add switchContext function to context.go
2014-08-16 13:55:13 +00:00
Simon Aquino
df06dc356b
Added script cmd in cmd.go
2014-08-16 13:54:46 +00:00
Simon Aquino
b6c82f073f
Added new script command
2014-08-16 10:17:44 +00:00
Andrey Smirnov
9a03b5f696
Update leveldb to the latest version.
2014-08-15 21:50:41 +04:00
Andrey Smirnov
047270540a
Version bump: 0.8~dev
2014-08-06 23:34:51 +04:00
Andrey Smirnov
eff3823edf
Upload src-package to bintray.
2014-08-06 13:40:13 +04:00
Andrey Smirnov
9d02f057c6
Version bump: 0.7.1.
v0.7.1
2014-08-06 02:24:43 +04:00
Andrey Smirnov
8387586cc8
Man page update: -force-overwrite flag. #90
2014-08-06 02:04:25 +04:00
Andrey Smirnov
b433e7dad5
Workaround for broken time.Time encoding in msgpack with go < 1.2. #89
...
Decoding looses value of time.Time field, but that is not critical.
2014-08-06 01:56:13 +04:00
Andrey Smirnov
dec4bdee71
Merge branch 'patch-1' of https://github.com/guilhem/aptly
2014-08-05 17:01:55 +04:00
Andrey Smirnov
bb6593d21e
Add -force-overwrite flag to publish update, switch, snapshot and repo commands. #90
...
Includes new and updated system tests.
2014-08-05 17:01:18 +04:00
Andrey Smirnov
fe879acf9c
Remove Makefile part specific for go1.1
2014-08-05 15:59:32 +04:00
Andrey Smirnov
5b8390c644
Uncomment and fix publish updat tests.
2014-08-05 15:58:47 +04:00
Andrey Smirnov
d558791070
Add -force-overwrite command flag. #90
2014-08-05 15:47:38 +04:00
Andrey Smirnov
38ea595c9a
Add forceOverwrite on the path to LinkFromPool. #90
2014-08-05 15:47:23 +04:00
Andrey Smirnov
c03b7929d4
Fix line ends: system tests.
2014-08-05 15:44:12 +04:00
Andrey Smirnov
d122ab6013
Fix system tests.
2014-08-05 15:27:39 +04:00
Andrey Smirnov
a7b594d076
Drop support for go1.1
2014-08-05 15:26:41 +04:00
Andrey Smirnov
e07bcf8e51
Fix style and add comments. #90
2014-08-05 14:50:15 +04:00
Andrey Smirnov
da6d5b7cf8
Add 'force' to LinkFromPool method: overwrite file even if exists and different content. #90
2014-08-05 14:50:06 +04:00
Guilhem Lettron
15ef5c63c5
Add gobuild.io badge
2014-07-31 14:52:22 +02:00
Andrey Smirnov
625a38c578
aptly version 0.7
v0.7
2014-07-29 00:33:53 +04:00
Andrey Smirnov
03a79ebe4c
Update goamz to fixed version with signing & encoding. #15
2014-07-28 23:41:59 +04:00
Andrey Smirnov
60fa0aa68e
Update command usage.
2014-07-28 19:17:21 +04:00
Andrey Smirnov
04bd9929e1
Update man page: S3, package queries.
2014-07-28 19:17:10 +04:00
Andrey Smirnov
8407e70347
Fix system tests. #15
2014-07-28 16:20:38 +04:00
Andrey Smirnov
bf91744078
<endpoint> in command usage. #15
2014-07-28 15:03:55 +04:00
Andrey Smirnov
2c470c1535
Rename config option to endpoint. #15
2014-07-28 15:01:51 +04:00
Andrey Smirnov
a18011bdc0
Update goamz: fixed bug with '+' in filenames. #15
2014-07-27 02:49:05 +04:00
Andrey Smirnov
af8af0f3d7
Fix tests on aptly mirror edit. #63
2014-07-26 18:22:47 +04:00
Andrey Smirnov
89d26b7dc6
Man for aptly mirror edit. #63
2014-07-26 18:02:01 +04:00
Andrey Smirnov
8649ee3b37
Command aptly mirror edit with tests. #63
2014-07-26 17:59:46 +04:00
Andrey Smirnov
b9c8a8d9da
System tests for mirror/repo/snapshot rename commands. #63
2014-07-26 17:28:16 +04:00
Andrey Smirnov
c5922737ed
Man page updates for 'rename' commands. #63
2014-07-26 17:12:00 +04:00
Andrey Smirnov
772111ad26
Commands mirror/repo/snapshot rename. #63
2014-07-26 17:11:26 +04:00
Andrey Smirnov
d7ef1a0c4b
Allow saving snapshot without package refs loaded. #63
2014-07-26 17:09:47 +04:00
Andrey Smirnov
bd221bf869
Sort dependencies.
2014-07-26 16:42:59 +04:00
Andrey Smirnov
0485a36de1
Add Recommends: dependency on bzip2. #84
2014-07-26 01:44:30 +04:00