Quick actions

cmd+k|ctrl+k

Navigation

Languages

Linear Sqitch plan generator

Snippet info

Language

Perl

Visibility

public

Author

rightfold

Created

2020-09-14T10:39:32Z

Updated

2020-09-14T10:39:32Z

# Input: chronological list of migration names.
# Output: Sqitch plan file for use with Sqitch.

use v5.20;
use warnings;

say('%syntax-version=1.0.0');
say('%project=irrelevant');
say('');

my $previous = '';
while (<STDIN>) {
    chomp;
    say("$_$previous 1970-01-01T00:00:00Z irrelevant <irrelevant>");
    $previous = " [$_]";
}
INFO