Skip to content

Commit d680a4b

Browse files
committed
Notice to upgrade to new cli
1 parent 4307585 commit d680a4b

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
"name": "Starter Kit Doogie Browser",
66
"description": "Statamic Starter Kit: Doogie Browser"
77
}
8+
},
9+
"scripts": {
10+
"post-create-project-cmd": [
11+
"@php upgrade-cli-notice.php"
12+
]
813
}
914
}

upgrade-cli-notice.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
function printError($message) {
4+
echo "\033[41;37m{$message}\033[0;37m\n";
5+
}
6+
7+
printError('Old statamic/cli installer detected!');
8+
printError('Please upgrade to the latest cli installer and re-install your starter kit.');
9+
printError('https://github.com/statamic/cli');

0 commit comments

Comments
 (0)