Activity log for bug #452306

Date Who What changed Old value New value Message
2009-10-15 16:21:32 Didier Roche-Tolomelli bug added bug
2009-10-15 16:21:48 Didier Roche-Tolomelli summary We should implement a inheritance template modele We should implement a inheritance template model
2009-10-20 15:39:14 Didier Roche-Tolomelli quickly: status New Triaged
2009-10-30 10:53:12 Didier Roche-Tolomelli description Currently all commands from any template can be launched in any templated project. For instance, from an ubuntu-project templated project, I can launch: quickly -t myawesometemplate foo But how to I know that the "foo" commands is compatible with my ubuntu-project project? The idea will be to add a confirmation dialog. To avoid this confirmation, we can introduce a --force command or enabling templates to tell "well, I know that the foo command from myawesometemplate is compatible with my template". But in any case, that would mean the all commands in myawesometemplate is compatible with ubuntu-project template, only the foo command is. Well, we can implement something like this in commandsconfig: (taking for instance, the one of ubuntu-project template) [GENERAL] COMMANDS_LAUNCHED_IN_OR_OUTSIDE_PROJECT = tutorial COMMANDS_LAUNCHED_OUTSIDE_PROJECT_ONLY = create COMMANDS_FOLLOWED_BY_COMMAND = # (this is the old options, for compatibility, template with [GENERAL] question in commandsconfig will be treated as being in the old format) [MYAWESOMETEMPLATE] foo bar That will mean that the foo and bar command from MYAWESOMETEMPLATE is considered as being compatible with ubuntu-project templated projects. So, no confirmation for those command. They should even been displayed in shell-completion! We should also consider that if the foo command is redefined in ubuntu-project template, we shouldn't be overridden by the foo command from myawesometemplate. Currently all commands from any template can be launched in any templated project. For instance, from an ubuntu-project templated project, I can launch: quickly -t myawesometemplate foo But how to I know that the "foo" commands is compatible with my ubuntu-project project? The idea will be to add a confirmation dialog. Also, we maybe want to add commands from others templates in our own template. The user hasn't to be aware that a particular command is from another template To avoid this confirmation, we can introduce a --force command or enabling templates to tell "well, I know that the foo command from myawesometemplate is compatible with my template". But in any case, that would mean the all commands in myawesometemplate is compatible with ubuntu-project template, only the foo command is. Well, we can implement something like this in commandsconfig file: (taking for instance, the one of ubuntu-project template) foo-template commandsconfig file: [GENERAL] COMMANDS_LAUNCHED_IN_OR_OUTSIDE_PROJECT = tutorial COMMANDS_LAUNCHED_OUTSIDE_PROJECT_ONLY = create COMMANDS_FOLLOWED_BY_COMMAND = # Below, you can specify whith which template and commands your template is compatibles # [TEMPLATE] is the template name on which command will be described # ADD_COMMANDS means that this command from that template will be proposed in tab completion, and can be launched as a native template command (which means that --template is not compulsory) # SUITTED_COMMANDS remove the warning when we launch that particular command from this template [MYAWESOMETEMPLATE] ADD_COMMANDS=foo SUITTED_COMMANDS=bar;share [ANOTHERTEMPLATE] ADD_COMMANDS=pool SUITTED_COMMANDS=swim That will mean that the foo command from MYAWESOMETEMPLATE and pool command from ANOTHERTEMPLATE are considered as being "native" in this template (foo-template in that case). Those commands will be shown in shell completion and can be launched without --template option. bar;share and swim are only considered as being compatible with foo-template templated projects. So, no confirmation prompt for those commands will be shown. We can even imagine that some templates can only pick commands from other templates without defining one! We should also consider that if the foo command is redefined in ubuntu-project template, we shouldn't be overridden by the foo command from myawesometemplate.
2009-12-27 12:52:02 Didier Roche-Tolomelli description Currently all commands from any template can be launched in any templated project. For instance, from an ubuntu-project templated project, I can launch: quickly -t myawesometemplate foo But how to I know that the "foo" commands is compatible with my ubuntu-project project? The idea will be to add a confirmation dialog. Also, we maybe want to add commands from others templates in our own template. The user hasn't to be aware that a particular command is from another template To avoid this confirmation, we can introduce a --force command or enabling templates to tell "well, I know that the foo command from myawesometemplate is compatible with my template". But in any case, that would mean the all commands in myawesometemplate is compatible with ubuntu-project template, only the foo command is. Well, we can implement something like this in commandsconfig file: (taking for instance, the one of ubuntu-project template) foo-template commandsconfig file: [GENERAL] COMMANDS_LAUNCHED_IN_OR_OUTSIDE_PROJECT = tutorial COMMANDS_LAUNCHED_OUTSIDE_PROJECT_ONLY = create COMMANDS_FOLLOWED_BY_COMMAND = # Below, you can specify whith which template and commands your template is compatibles # [TEMPLATE] is the template name on which command will be described # ADD_COMMANDS means that this command from that template will be proposed in tab completion, and can be launched as a native template command (which means that --template is not compulsory) # SUITTED_COMMANDS remove the warning when we launch that particular command from this template [MYAWESOMETEMPLATE] ADD_COMMANDS=foo SUITTED_COMMANDS=bar;share [ANOTHERTEMPLATE] ADD_COMMANDS=pool SUITTED_COMMANDS=swim That will mean that the foo command from MYAWESOMETEMPLATE and pool command from ANOTHERTEMPLATE are considered as being "native" in this template (foo-template in that case). Those commands will be shown in shell completion and can be launched without --template option. bar;share and swim are only considered as being compatible with foo-template templated projects. So, no confirmation prompt for those commands will be shown. We can even imagine that some templates can only pick commands from other templates without defining one! We should also consider that if the foo command is redefined in ubuntu-project template, we shouldn't be overridden by the foo command from myawesometemplate. Currently all commands from any template can be launched in any templated project. For instance, from an ubuntu-project templated project, I can launch: quickly -t myawesometemplate foo But how to I know that the "foo" commands is compatible with my ubuntu-project project? The idea will be to add a confirmation dialog. Also, we maybe want to add commands from others templates in our own template. The user hasn't to be aware that a particular command is from another template To avoid this confirmation, we can introduce a --force command or enabling templates to tell "well, I know that the foo command from myawesometemplate is compatible with my template". But in any case, that would mean the all commands in myawesometemplate is compatible with ubuntu-project template, only the foo command is. Well, we can implement something like this in commandsconfig file: (taking for instance, the one of ubuntu-project template) foo-template commandsconfig file: COMMANDS_LAUNCHED_IN_OR_OUTSIDE_PROJECT = tutorial COMMANDS_LAUNCHED_OUTSIDE_PROJECT_ONLY = create COMMANDS_FOLLOWED_BY_COMMAND = # Below, you can specify whith which template and commands your template is compatibles # [TEMPLATE] is the template name on which command will be described # IMPORT means that this command from that template will be proposed in tab completion, and can be launched as a native template command (which means that --template is not compulsory)  # SUITED remove the warning when we launch that particular command from this template [MYAWESOMETEMPLATE] IMPORT=foo SUITED=bar;share [ANOTHERTEMPLATE] IMPORT=pool SUITED=swim That will mean that the foo command from MYAWESOMETEMPLATE and pool command from ANOTHERTEMPLATE are considered as being "native" in this template (foo-template in that case). Those commands will be shown in shell completion and can be launched without --template option. bar;share and swim are only considered as being compatible with foo-template templated projects. So, no confirmation prompt for those commands will be shown. We can even imagine that some templates can only pick commands from other templates without defining one! We should also consider that if the foo command is redefined in ubuntu-project template, we shouldn't be overridden by the foo command from myawesometemplate. -> Quickly support also the "all" keyname to import all commands from a template SUITED is not yet implemented as the warning is still not in effet
2009-12-27 12:52:11 Didier Roche-Tolomelli quickly: status Triaged Fix Committed
2009-12-27 12:52:23 Didier Roche-Tolomelli quickly: milestone 0.4
2010-03-29 16:41:36 Launchpad Janitor branch linked lp:quickly
2010-03-29 17:09:29 Didier Roche-Tolomelli quickly: status Fix Committed Fix Released
2010-03-29 19:27:19 Launchpad Janitor branch linked lp:ubuntu/quickly