Template:Fgaddon co: Difference between revisions
Jump to navigation
Jump to search
(Complete project infrastructure abstraction using {{project infrastructure}}.) |
(Added the 'branch' and 'path' parameters for finer control of the 'svn co' command.) |
||
Line 1: | Line 1: | ||
{{#tag:nowiki | {{repo link | {{#tag:nowiki | {{repo link | ||
| site | | site = {{project infrastructure|abbrev}} | ||
| cmd | | cmd = svn co {{{opt|}}} | ||
| protocol = https | | protocol = https | ||
| type | | type = svn | ||
| repo = | | repo = fgaddon | ||
| post | | branch{{#if:{{{branch|}}}||NULL}} = {{{branch}}} | ||
| full | | path{{#if:{{{path|}}}||NULL}} = {{{path}}} | ||
| post = {{{post|fgaddon}}} | |||
| full = 1 | |||
}} }}<noinclude> | }} }}<noinclude> | ||
{{Informative template|1= | {{Informative template|1= | ||
Line 15: | Line 17: | ||
== Usage == | == Usage == | ||
{{obr}}'''fgaddon co''' | {{obr}}'''fgaddon co''' | ||
{{!}} ''opt'' = | {{!}} ''opt'' = | ||
{{!}} ''post'' = | {{!}} ''branch'' = | ||
{{!}} ''path'' = | |||
{{!}} ''post'' = | |||
{{cbr}} | {{cbr}} | ||
Line 23: | Line 27: | ||
; post: Any optional text to show after the URL. This defaults to '''flightgear-fgaddon'''. | ; post: Any optional text to show after the URL. This defaults to '''flightgear-fgaddon'''. | ||
== | == Examples == | ||
=== Checkout of trunk with user name === | |||
{{obr}}fgaddon co | {{obr}}fgaddon co | ||
{{!}} opt = --username <username> | {{!}} opt = --username <username> | ||
Line 32: | Line 37: | ||
| opt = --username <username> | | opt = --username <username> | ||
| post = fgaddon | | post = fgaddon | ||
}} | |||
=== Checkout of aircraft from a branch === | |||
{{obr}}fgaddon co | |||
{{!}} branch = branches/release-3.4.0 | |||
{{!}} path = Aircraft/V22-Osprey | |||
{{!}} post = | |||
{{cbr}} | |||
{{fgaddon co | |||
| branch = branches/release-3.4.0 | |||
| path = Aircraft/V22-Osprey | |||
| post = | |||
}} | }} | ||
Revision as of 16:19, 26 February 2016
svn co https://svn.code.sf.net/p/flightgear/fgaddon/trunk fgaddon
The following template description is not displayed when the template is inserted in an article.
Goal
To provide a consistent representation of the command to checkout the FGAddon subversion repository.
Usage
{{fgaddon co | opt = | branch = | path = | post = }}
- opt
- Any additional options to show after
svn co
.
- post
- Any optional text to show after the URL. This defaults to flightgear-fgaddon.
Examples
Checkout of trunk with user name
{{fgaddon co | opt = --username <username> | post = fgaddon }}
svn co --username <username> https://svn.code.sf.net/p/flightgear/fgaddon/trunk fgaddon
Checkout of aircraft from a branch
{{fgaddon co | branch = branches/release-3.4.0 | path = Aircraft/V22-Osprey | post = }}
svn co https://svn.code.sf.net/p/flightgear/fgaddon/branches/release-3.4.0/Aircraft/V22-Osprey
Related templates
|