Modify

Opened 9 years ago

Closed 7 years ago

Last modified 7 years ago

#12536 closed enhancement (fixed)

Replace trac-wikireplace script with a TracAdmin command

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: WikiReplacePlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

An implementation of IAdminCommandProvider would allow trac-wikireplace to be replaced with a trac-admin command such as wiki replace <page> <old-text> <new-text>.

Attachments (0)

Change History (5)

comment:1 Changed 9 years ago by Ryan J Ollos

Owner: changed from Gasler Radu to Ryan J Ollos
Status: newaccepted

comment:2 Changed 9 years ago by Ryan J Ollos

Two things:

  • wiki replace is already a TracAdmin command. I suppose we could use wiki substitute instead (or wiki search&replace, or ...?)
  • The proper argument pattern would seem to be wiki substitute <page> <old-text> <new-text>, however we want to support specifying more than one page and optional arguments should go at the end of the argument list. It appears a similar situation was encountered with wiki dump (compare to the other wiki commands in which page is the first argument), so following that pattern we'd use wiki substitute <old-text> <new-text> <page> [...].

DONE update documentation: WikiReplacePlugin#Installation and README.

Last edited 7 years ago by Ryan J Ollos (previous) (diff)

comment:3 Changed 7 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 16656:

TracWikiReplace 1.1.2dev: Replace script with a TracAdmin command

Fixes #12536.

comment:4 Changed 7 years ago by Ryan J Ollos

In 16657:

TracWikiReplace 1.1.2dev: Update README

Refs #12536.

comment:5 Changed 7 years ago by Ryan J Ollos

In 16659:

TracWikiReplace 1.1.2dev: Fix wild-card matching of wiki page names

Refs #12536.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.