Template:Fgaddon co: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Support for the 'login' parameter.)
mNo edit summary
Line 3: Line 3:
| cmd                              = svn co {{{opt|}}}
| cmd                              = svn co {{{opt|}}}
| protocol                          = {{#if: {{{login|}}} | svn+ssh | https}}
| protocol                          = {{#if: {{{login|}}} | svn+ssh | https}}
| login{{#if:{{{login|}}}||NULL}}           = {{{login}}}
| login{{#if:{{{login|}}}||NULL}}   = {{{login}}}
| type                              = svn
| type                              = svn
| repo                              = fgaddon
| repo                              = fgaddon

Revision as of 22:36, 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    =
| login  =
| branch =
| path   =
| post   =
}}
opt
Any additional options to show after svn co.
login
The optional user login.
branch
The svn branch or tag name. This defaults to trunk.
path
The file path.
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

Checkout of aircraft as a user

{{fgaddon co
| login = <username>
| path  = Aircraft/wrightFlyer1903
| post  = 
}}

svn co svn+ssh://<username>@svn.code.sf.net/p/flightgear/fgaddon/trunk/Aircraft/wrightFlyer1903

Related templates