wiki:TracCmdScript

Version 1 (modified by Nic Ferrier, 15 years ago) (diff)

New hack TracCmdScript, created by nicferrier

command line interface to obvious trac things

Notice: This plugin is unmaintained and available for adoption.

Description

traccmd is a simple interface to the most obvious trac functions:

  • reading wiki pages
  • editing wiki pages
  • reading tickets or ticket attributes
  • creating tickets
  • updating ticket attributes

Everything is done via xmlrpc, the xmlrpc support must be enabled.

Bugs/Feature Requests

Existing bugs and feature requests for TracCmdScript are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:traccmdscript here].

Source

You can check out TracCmdScript from here using Subversion, or browse the source with Trac.

Example

getting a ticket

$ traccmd.py ticket 3567
1 status reopened
1 type defect
1 description Test patch
1 description 
1 description Something went tits. Fix it!
1 reporter admin
1 cc 
1 ticket_status sign off requested
1 component tech.homepage
1 summary Test patch
1 priority minor
1 owner nferrier
1 version 
1 milestone 
1 keywords 
1 resolution fixed

getting a ticket attribute:

$ traccmd.py ticket 1 resolution
#1 resolution: fixed

getting a wiki page:

$ traccmd.py wiki TracGuide | head -n15
(:tracwikiproperties (
:comment ""
:lastModified "20090410T15:29:13"
:version "2"
:name "TracGuide"
:author "trac"
))
= The Trac User and Administration Guide =
[[TracGuideToc]]

The TracGuide is meant to serve as a starting point for all documentation regarding Trac usage and development. The guide is a free document, a collaborative effort, and a part of the [http://trac.edgewall.org Trac Project] itself.

== Table of Contents ==
Currently available documentation:
 * TracGuide (This page)  -- Documentation starting point.

Recent Changes

17002 by rjollos on 2017-11-26 17:58:18
Fix match for HTTPS

Patch by walty8.

Fixes #13339.

17001 by rjollos on 2017-11-26 17:57:31
Conform to PEP8
16557 by rjollos on 2017-04-20 06:11:21
Fix unable to connect using INI file authentication
(more)

Author/Contributors

Author: nicferrier
Contributors: