X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=mig;h=94731c5776b2cf8214a40f30945b830c27e6ad0b;hp=914b24712c99ca8f81a9ecf06890566535973d2e;hb=2f34c8427944b6572c9e0c695b2f241b4f10cb3a;hpb=9e1dd47deb11013ec5dbf77ba9757075d5b74aac diff --git a/mig b/mig index 914b247..94731c5 100755 --- a/mig +++ b/mig @@ -63,6 +63,10 @@ Using B should go something like this: =item mig write_prod patrons.tsv # creates a .sql file for pushing the staging data into production +=item mig reporter --analyst "Foo Fooer" --report_title "Foo Load Analysis" #creates an asciidoc report + +=item mig gsheet --pull foo_tab_name OR --push foo_pg_table_name + =back =head1 COMMANDS @@ -230,6 +234,35 @@ all such files if no file is specified. A wrapper around the psql command. At some point the plan is to shove mig-tracked variables into psql sessions. +=item B --analyst "Analyst Name" --report_title "Report Title" + +Generates an asciidoc file in the git working directory that can be converted to +any appropriate format. The analyst and report parameters are required. + +Optional parameters are : + +--added_page_title and --added_page_file + +If one is used both must be. The added page file can be plain text or asciidoc. This +adds an extra arbitrary page of notes to the report. Mig assumes the page file is in the mig git directory. + +--tags + +This will define a set of tags to use, if not set it will default to Circs, +Holds, Actors, Bibs, Assets & Money. + +--reports_xml + +Allows you to override the default evergreen_staged_report.xml in the mig-xml folder. + +=item B --pull or --push spreadsheet_tab + +This uses the gsheet_tracked_table and gsheet_tracked column tables to map a Google Docs Spreadsheet tabs +with Postgres tables in the mig schema. The spreadsheet is assumed to share the name as the mig schema. +Tab names must be unique. Each spreadsheet column needs a header that matches the column name in the matching +table. An oauth session key is also needed for your Google account and mig gsheet will look for it in the +.mig directory. + =back =cut @@ -273,6 +306,10 @@ switch($ARGV[0]) { Mig::die_if_no_env_migschema(); standard_invocation(@ARGV); } + case "quick" { + Mig::die_if_no_env_migschema(); + standard_invocation(@ARGV); + } case "add" { Mig::die_if_no_env_migschema(); standard_invocation(@ARGV); @@ -281,6 +318,10 @@ switch($ARGV[0]) { Mig::die_if_no_env_migschema(); standard_invocation(@ARGV); } + case "gsheet" { + Mig::die_if_no_env_migschema(); + standard_invocation(@ARGV); + } case "remove" { Mig::die_if_no_env_migschema(); standard_invocation(@ARGV);