Skip to content

Commit 63ecedf

Browse files
committed
Initial commit
1 parent 8f37277 commit 63ecedf

File tree

9 files changed

+965
-3
lines changed

9 files changed

+965
-3
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
# Composer
12
composer.phar
23
/vendor/
4+
composer.lock
35

4-
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
5-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6-
# composer.lock
6+
# IDE
7+
/.idea/*
8+
.php_cs.cache

.php_cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
/*
4+
* This file is part of PHP CS Fixer.
5+
* (c) Fabien Potencier <fabien@symfony.com>
6+
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
7+
* This source file is subject to the MIT license that is bundled
8+
* with this source code in the file LICENSE.
9+
*/
10+
11+
$header = <<<'EOF'
12+
This file is part of PHP CS Fixer.
13+
(c) Fabien Potencier <fabien@symfony.com>
14+
Dariusz Rumiński <dariusz.ruminski@gmail.com>
15+
This source file is subject to the MIT license that is bundled
16+
with this source code in the file LICENSE.
17+
EOF;
18+
19+
return PhpCsFixer\Config::create()
20+
->setRules([
21+
'@Symfony' => true,
22+
'phpdoc_no_package' => false,
23+
'binary_operator_spaces' => [ 'default' => 'align_single_space_minimal'],
24+
'braces' => [ 'position_after_control_structures' => 'next' ]
25+
])
26+
->setIndent(" ");

bin/console

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
set_time_limit(0);
5+
6+
$dir = __DIR__.'/..';
7+
require_once $dir.'/vendor/autoload.php';
8+
9+
use DevCoding\Mac\Ssh\Command as Command;
10+
use Symfony\Component\Console\Application;
11+
12+
$command = new Command\SshCommand();
13+
$app = new Application('jssh', 'v1.0');
14+
$app->add($command);
15+
$app->setDefaultCommand('ssh', true);
16+
$app->run();

box.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"chmod": "0755",
3+
"directories": [
4+
"src",
5+
"src/Command",
6+
"src/Drivers",
7+
"resources",
8+
"resources/config"
9+
],
10+
"finder": [
11+
{
12+
"name": "*.php",
13+
"exclude": ["Tests"],
14+
"in": "vendor"
15+
}
16+
],
17+
"git-version": "package_version",
18+
"main": "bin/console",
19+
"output": "dist/jssh.phar",
20+
"stub": true
21+
}

composer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "deviscoding/jssh",
3+
"description": "SSH frontend for macOS admins, with enhancements: dotfile sync, SSH config entries, and integration with Jamf. Designed for admins working with a large number of systems in a WFH environment.",
4+
"type": "project",
5+
"authors": [
6+
{
7+
"name": "Aaron Jones",
8+
"email": "aaron@jonesiscoding.com"
9+
}
10+
],
11+
"minimum-stability": "dev",
12+
"require": {
13+
"php": "^7.0",
14+
"ext-json": "*",
15+
"symfony/yaml": "^4.4",
16+
"deviscoding/mac-console": "^1.3"
17+
},
18+
"version": "1.0",
19+
"autoload": {
20+
"psr-4": {
21+
"DevCoding\\Mac\\Ssh\\": "src"
22+
}
23+
}
24+
}

dist/jssh.phar

1010 KB
Binary file not shown.

resources/config/sshdash.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
defaults:
2+
domain: ""
3+
username: ""
4+
port: 22
5+
jamf:
6+
username: ""
7+
url: ""
8+
ea_vpn: ""
9+
ea_fqdn: ""
10+
dotfiles: ""
11+
options:
12+
identity: true
13+
jamf: false
14+
dotsync: false
15+
screen: false
16+
network:
17+
internet: ['google.com','github.com','amazon.com']
18+
local: []
19+

0 commit comments

Comments
 (0)