mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Create v2 libraries
Summary: This is how it looks like now: > What do you want to name this library? x > Writing '__phutil_library_init__.php' to 'x/__phutil_library_init__.php'... > Usage Exception: This library is using libphutil v1, which is no longer supported. Run 'arc liberate --upgrade' to upgrade to v2. Test Plan: $ arc liberate # in new dir Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3368
This commit is contained in:
parent
129339019f
commit
7ba210f89a
1 changed files with 3 additions and 1 deletions
|
@ -122,6 +122,7 @@ EOTEXT
|
|||
echo "No library currently exists at that path...\n";
|
||||
$this->liberateCreateDirectory($path);
|
||||
$this->liberateCreateLibrary($path);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -227,8 +228,9 @@ EOTEXT
|
|||
"<?php\n\n".
|
||||
"phutil_register_library('{$name}', __FILE__);\n";
|
||||
|
||||
echo "Writing '__phutil_library_init__.php' to '{$init_path}'...\n";
|
||||
echo "Writing '__phutil_library_init__.php' to '{$path}'...\n";
|
||||
Filesystem::writeFile($init_path, $template);
|
||||
$this->liberateVersion2($path);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue