forked from jayallen/mt-util-clitool
-
Notifications
You must be signed in to change notification settings - Fork 0
endevver/mt-util-clitool
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# AUTHOR: Jay Allen, Endevver Consulting # DATE: September 13th, 2010 # Version: v3.1.2 This library enables you to easily create command-line scripts which interface with Movable Type. ### USAGE ### To use this library, create a command-line script like so customizing the package name on the last line with your desired package name for your script's lib module: #!/usr/bin/perl use strict; use FindBin qw($Bin); use lib "$Bin/../lib"; BEGIN { my $mtdir = $ENV{MT_HOME} ? "$ENV{MT_HOME}/" : ''; unshift @INC, "$mtdir$_" foreach qw(lib extlib ); } use MT::Bootstrap::CLI App => 'MyPlugin::Tool::MyCommand'; Then, create a module with the chosen package name containing your script's core code. **NOTE: Will complete soon. The overhaul is extensive and everything below here needs a rewrite.** ### EXAMPLES ### tools/mtclitool.pl - Basic example of a CLI script which uses MT::CLITool to initialize an MT object. tools/mtclitoolapp.pl - Example of an CLI script which initializes an MT object which is a full MT::App subclass ### RELATED LIBRARIES ### MT::Tool - Nascent but vigorously developed library bundled with Movable Type 4.x and used by a growing number of its CLI scripts. MT-xdk - Set of libraries written by Tim Appnel (http://appnel.com) including an MT::Tool variant. See http://code.google.com/p/mt-xdk/ for details
About
This library enables you to easily create command-line scripts which interface with Movable Type
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Perl 100.0%