Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
5a89bb91
Commit
5a89bb91
authored
9 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
cli: Sort available cli apps
parent
f5fc8a35
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manage.php
+20
-1
20 additions, 1 deletion
manage.php
setup/cli/manage.php
+0
-0
0 additions, 0 deletions
setup/cli/manage.php
with
20 additions
and
1 deletion
manage.php
+
20
−
1
View file @
5a89bb91
#!/usr/bin/env php
<?php
/*********************************************************************
manage.php
CLI (command line interface) for osTicket management. Use
php manage.php --help
for detailed and updated getting started information.
Jared Hancock <jared@osticket.com>
Copyright (c) 2006-2015 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
if
(
PHP_SAPI
!=
"cli"
)
die
(
"Management only supported from command-line
\n
"
);
...
...
@@ -34,8 +51,10 @@ class Manager extends Module {
parent
::
showHelp
();
echo
"
\n
"
;
ksort
(
$registered_modules
);
$width
=
max
(
array_map
(
'strlen'
,
array_keys
(
$registered_modules
)));
foreach
(
$registered_modules
as
$name
=>
$mod
)
echo
str_pad
(
$name
,
2
0
)
.
$mod
->
prologue
.
"
\n
"
;
echo
str_pad
(
$name
,
$width
+
2
)
.
$mod
->
prologue
.
"
\n
"
;
}
function
run
(
$args
,
$options
)
{
...
...
This diff is collapsed.
Click to expand it.
setup/cli/manage.php
100644 → 100755
+
0
−
0
View file @
5a89bb91
File mode changed from 100644 to 100755
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment