← Back to team overview

quickly-talk team mailing list archive

Re: Fwd: Fwd: Proposal: Abstract hosting service from project templates.

 

Hi Alistair
 The -t parameter calls a command from a template even if it is not
the template that created the project. When you create a project
quickly defaults to the creating template unless you specify
otherwise.

quickly -t alistairs_template create ubuntu-app
  alistairs_template should not contain a create command so a command
not found error will be thrown.
If it did, because you had run
quickly quickly ubuntu-application alistairs_template then
quickly -t alistairs_template create ubuntu-app leads the original
duplication of project files problem you mentioned.
quickly save will probably crash on lack of bzr repo directory
quickly submitubuntu ditto
quickly -t alistairs_template submitubuntu - a command not found error
will be thrown.
alistairs_template will not contain a submitubuntu command, unless you
put one into it. Consider alistairs_template as a collection of
commands and quickly calls them from within the source tree and
provides them with the right environment. You write the commands, and
as you say, they can do anything.

On 08/08/2012, Alistair Buxton <a.j.buxton@xxxxxxxxx> wrote:
> On 8 August 2012 21:00, tony byrne <tony.badwolf@xxxxxxxxx> wrote:
>> ---------- Forwarded message ----------
>> From: tony byrne <tony.badwolf@xxxxxxxxx>
>> Date: Wed, 8 Aug 2012 20:59:46 +0100
>> Subject: Re: [Quickly-talk] Fwd: Proposal: Abstract hosting service
>> from project templates.
>> To: Alistair Buxton <a.j.buxton@xxxxxxxxx>
>>
>> Hi Alistair
>>  I forgot about build. So template 1, ubuntu-application, contains
>> project code and bzr/launcpad commands, template 2 contains a bzr2git
>> command, removing bzr and initialising git, and release uploading to
>> githost. No project files or create command so no duplication.
>>
>> quickly create ubuntu-application foo
>> cd foo
>> quickly -t alistairs_template bzr2git
>> quickly -t alistairs_template release
>>
>> quickly create ubuntu-cli bar
>> cd bar
>> quickly -t alistairs_template bzr2git
>> quickly -t alistairs_template release
>>
>> quickly create ubuntu-flash-game foobar
>> cd foobar
>> quickly -t alistairs_template bzr2git
>> quickly -t alistairs_template release
>
>
> What happens if I do any of the following:
>
> quickly save
> quickly submitubuntu
> quickly -t alistairs_template submitubuntu
>
> And why not just do:
>
> quickly -t alistairs_template create ubuntu-app
>
> And then have quickly remember that this project was created with -t
> and so it should always assume the -t parameter whenever running any
> command on this project. That was my original proposal, in a nutshell,
> and it avoids having to convert repository format.
>
>
> --
> Alistair Buxton
> a.j.buxton@xxxxxxxxx
>


Follow ups

References