This repository has been archived by the owner on Jan 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add phar build, and move config to ~/.config
Add Box configuration for building a Phar file at a new website directory: website/mwcl.phar Also update the location of the config.yml file to be in the XDG config directory, so it's accessible wherever the Phar is run from. Add warning if a config file is found in the current working directory. Bug: GH #241 Bug: GH #246
- Loading branch information
Showing
14 changed files
with
136 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/contribs/ | ||
/.phpunit.result.cache | ||
/build/ | ||
/website/mwcli.phar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"output": "website/mwcli.phar", | ||
"compression": "GZ", | ||
"git-tag": "git-tag", | ||
"directories": [ | ||
"src/", | ||
"i18n/" | ||
], | ||
"finder": [ | ||
{ | ||
"in": "vendor", | ||
"name": "*.php", | ||
"exclude": [ | ||
"CHANGELOG", | ||
"CONTRIBUTING", | ||
"README", | ||
"Tests", | ||
"behat", | ||
"ext", | ||
"bin", | ||
"build", | ||
"doc", | ||
"docs", | ||
"doc-template", | ||
"fixtures", | ||
"test", | ||
"tests", | ||
"test_old", | ||
"vendor-bin" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,9 @@ | |
"minus-x check .", | ||
"./bin/mwcli readme", | ||
"phpunit" | ||
], | ||
"build": [ | ||
"box compile" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="simple.min.css"> | ||
<title>mwcli: a MediaWiki CLI tool</title> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>MediaWiki CLI</h1> | ||
<p>A command line client for <a href="https://www.mediawiki.org">MediaWiki</a> wikis.</p> | ||
</header> | ||
|
||
<main> | ||
<p> | ||
MediaWiki CLI (or <code>mwcli</code> for short) is a multilingual cross-platform PHP command-line tool | ||
for interacting with MediaWiki installations, | ||
to carry out tasks such as uploading and downloading files, and exporting pages. | ||
</p> | ||
|
||
<p> | ||
<a class="button" href="mwcli.phar">Download mwcli.phar</a> | ||
</p> | ||
|
||
<p>Other useful links:</p> | ||
|
||
<ul> | ||
<li><a href="https://github.com/samwilson/mwcli/blob/main/README.md">README.md</a></li> | ||
<li><a href="https://github.com/samwilson/mwcli/">Source code</a></li> | ||
<li><a href="https://github.com/samwilson/mwcli/issues">Issue tracker</a></li> | ||
</ul> | ||
|
||
</main> | ||
</body> | ||
</html> |
Oops, something went wrong.