Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
89 lines (68 sloc) 3.83 KB

A command repository for Go


The newly introduced command repository hosts a selection of commands to help you get started with various tools via Go's custom command. This Readme describes syntax of a command and the structure of the repository. For full documentation about Go's support for this feature, please see:

Also check out these articles explaining how this can be used.

Introductory: And you thought Go didn't support Maven, Nuget or Chef?

Advanced: Use Go's new command repository to lookup your config scripts

Caution: Please do not change/add anything under the default repo on the Go server. The directory will be deleted and re-created upon Go Server upgrade. Refer the above link for setting up your own private command repository.


Go Server bundles a clone of the repository at by default. The version.txt file is meant to allow conditional overwriting of the repository during server upgrades.

Command Syntax

A valid command file looks like this:

<exec command="curl">

It must be a valid .xml file (escape special characters). The command attribute is mandatory. No other attributes are valid. Zero or more arg child elements can be specified. No other child elements are allowed. One command file may only contain one command.

Command Documentation

Documentation is fully optional but it aids lookup and use if present. Here is the above command with full documentation. Each item of documentation is key:value. Only whitespace characters may precede a key. Value terminates with newline (no multi-line values). Descriptions longer than about 250 characters may get truncated in the admin GUI on the Go Server.

note: author refers to author of the command xml file, not the underlying tool :-)

  name: curl
  description: curl is a command line tool for transferring data with URL syntax
  keywords: curl, wget, download, httpclient
  author: Go Team
<exec command="curl">


We encourage you to contribute to Go. For information on contributing to this project, please see our contributor's guide. A lot of useful information like links to user documentation, design documentation, mailing lists etc. can be found in the resources section.


Copyright 2015 ThoughtWorks, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.