Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Fix completion install
Browse files Browse the repository at this point in the history
  • Loading branch information
panlatent committed May 23, 2017
1 parent 401e498 commit 376d83f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 40 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor/
composer.lock
composer.lock
site-cli-completion.bash
2 changes: 1 addition & 1 deletion src/Commands/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ private function dumpCompleteFile()
$completion = implode("\n", $output);
$content = file_get_contents(__DIR__ . '/../../.site-cli.sh');
$content = str_replace('{% complete %}', $completion, $content);
file_put_contents(Util::utils() . '/site-cli-completion.bash', $content);
file_put_contents(Util::project() . '/site-cli-completion.bash', $content);
}
}
8 changes: 0 additions & 8 deletions src/Support/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ public static function project()
return realpath(__DIR__ . '/../../');
}

/**
* @return string
*/
public static function utils()
{
return realpath(__DIR__ . '/../../utils/');
}

public static function arrayDotKeys($arr, $prefix = '')
{
$keys = [];
Expand Down
30 changes: 0 additions & 30 deletions utils/site-cli-completion.bash

This file was deleted.

0 comments on commit 376d83f

Please sign in to comment.