pak-sh 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +731 -0
  3. data/bin/pak-sh +229 -0
  4. data/lib/pak_sh.rb +20 -0
  5. metadata +115 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 449e8ad868594ed2fc644a521f500baa0c59c1110461690127e108c42c3815b0
4
+ data.tar.gz: d71070bcbb8f6be35167dc909cb3ea8c38d42aa1d31ed75009f7c18509566da3
5
+ SHA512:
6
+ metadata.gz: 3b1e92bfb728ae1b13025a14d61ae2e5ea12ab23edd2eb1c6418095698b897db274d6313fe6867ff648af76025a5db4d47da7caf06e34368fdab012d1ed7fbf5
7
+ data.tar.gz: 6d81ba926fb94008256b1741f930f58193ba6369c4634ae9858870e4b94a5b341c86a176bdfacf7feab4f908a9cf7c61497c72c1f6854dd0a35fd6253bc909b0
data/README.md ADDED
@@ -0,0 +1,731 @@
1
+ <div align="center">
2
+
3
+ <!-- Logo -->
4
+ <img src="https://raw.githubusercontent.com/pak/pak.sh/main/assets/logo.svg" alt="PAK.sh Logo" width="400">
5
+
6
+ # PAK.sh - Universal Package Automation Kit
7
+
8
+ ### 🚀 Deploy Everywhere, Effortlessly
9
+
10
+ [![Version](https://img.shields.io/badge/version-2.0.0-4A90E2?style=for-the-badge)](https://github.com/pak/pak.sh/releases)
11
+ [![Platforms](https://img.shields.io/badge/platforms-30+-10B981?style=for-the-badge)](https://pak.sh/platforms)
12
+ [![License](https://img.shields.io/badge/license-MIT-F59E0B?style=for-the-badge)](LICENSE)
13
+ [![Downloads](https://img.shields.io/badge/downloads-1M+-06B6D4?style=for-the-badge)](https://pak.sh/stats)
14
+
15
+ <p align="center">
16
+ <strong>One command to rule them all. Deploy to 30+ package platforms simultaneously.</strong>
17
+ </p>
18
+
19
+ ```
20
+ ┌─────────────────────────────────────────────────────────────────┐
21
+ │ $ pak deploy my-package --version 1.2.3 │
22
+ │ │
23
+ │ 📦 Deploying to npm, pypi, cargo, nuget, packagist... │
24
+ │ ✓ npm: published v1.2.3 │
25
+ │ ✓ pypi: published v1.2.3 │
26
+ │ ✓ cargo: published v1.2.3 │
27
+ │ ✓ nuget: published v1.2.3 │
28
+ │ ✓ packagist: published v1.2.3 │
29
+ │ │
30
+ │ 🎉 Successfully deployed to 5 platforms in 45s │
31
+ └─────────────────────────────────────────────────────────────────┘
32
+ ```
33
+
34
+ [**Documentation**](https://pak.sh/docs) • [**Quick Start**](#-quick-start) • [**Features**](#-features) • [**API Reference**](https://pak.sh/api)
35
+
36
+ </div>
37
+
38
+ ---
39
+
40
+ ## 🌟 Why PAK.sh?
41
+
42
+ <table>
43
+ <tr>
44
+ <td width="50%">
45
+
46
+ ### 📊 **Track Everything**
47
+ ```bash
48
+ $ pak track my-package
49
+
50
+ 📊 Tracking statistics...
51
+ npm: 45,231 downloads (↑ 23%)
52
+ pypi: 12,543 downloads (↑ 15%)
53
+ cargo: 8,921 downloads (↑ 31%)
54
+
55
+ 📈 7-day trend: +18% growth
56
+ 🎯 Predicted next week: ~52,000
57
+ ```
58
+
59
+ </td>
60
+ <td width="50%">
61
+
62
+ ### 🔐 **Security First**
63
+ ```bash
64
+ $ pak scan my-package
65
+
66
+ 🔍 Running security scan...
67
+ ✓ No vulnerabilities found
68
+ ✓ All licenses compatible
69
+ ⚠️ 1 outdated dependency
70
+
71
+ 🔧 Run 'pak security fix' to resolve
72
+ ```
73
+
74
+ </td>
75
+ </tr>
76
+ <tr>
77
+ <td width="50%">
78
+
79
+ ### 🔐 **Register Everywhere**
80
+ ```bash
81
+ $ pak register
82
+
83
+ 🧙 PAK.sh Registration Wizard
84
+ =============================
85
+
86
+ 👤 USER PREFERENCES
87
+ ------------------
88
+ Your name: John Doe
89
+ Your email: john@example.com
90
+
91
+ 🎯 PLATFORM SELECTION
92
+ -------------------
93
+ Registering with ALL platforms:
94
+ ✓ npm, pypi, cargo, nuget, maven, packagist...
95
+
96
+ 🔐 REGISTRATION PROCESS
97
+ ---------------------
98
+ 📋 Registering with npm...
99
+ ✅ NPM credentials valid
100
+ 📋 Registering with pypi...
101
+ ✅ PyPI credentials saved
102
+ 📋 Registering with cargo...
103
+ ✅ Cargo credentials saved
104
+
105
+ 🎉 Successfully registered with 13 platforms!
106
+ ```
107
+
108
+ </td>
109
+ <td width="50%">
110
+
111
+ ### 🤖 **Automate Everything**
112
+ ```bash
113
+ $ pak pipeline create
114
+
115
+ 🤖 Creating CI/CD pipeline...
116
+ ✓ GitHub Actions workflow created
117
+ ✓ Auto-deploy on tags enabled
118
+ ✓ Security scanning integrated
119
+ ✓ Multi-platform testing configured
120
+
121
+ 🚀 Your pipeline is ready!
122
+ ```
123
+
124
+ </td>
125
+ </tr>
126
+ </table>
127
+
128
+ ## ✨ Features
129
+
130
+ <div align="center">
131
+
132
+ | Feature | Description |
133
+ |---------|-------------|
134
+ | 🚀 **Multi-Platform Deployment** | Deploy to 30+ platforms with one command |
135
+ | 📊 **Real-time Analytics** | Track downloads, trends, and predictions |
136
+ | 🔐 **Security Scanning** | Automated vulnerability and license checks |
137
+ | 🔐 **Registration Wizard** | One-click setup for all platform credentials |
138
+ | 🤖 **CI/CD Integration** | GitHub Actions, GitLab CI, Jenkins support |
139
+ | 📈 **Smart Monitoring** | 24/7 health checks and alerts |
140
+ | 🎨 **Beautiful CLI** | Interactive wizards and dynamic ASCII art |
141
+ | 🔧 **Modular Architecture** | Extensible plugin system |
142
+ | 🌍 **Global CDN** | Fast deployments worldwide |
143
+
144
+ </div>
145
+
146
+ ## 🚀 Quick Start
147
+
148
+ ### Installation
149
+
150
+ <details>
151
+ <summary><b>🐧 Linux/macOS</b></summary>
152
+
153
+ ```bash
154
+ # Download and install from pak.sh
155
+ curl -sSL https://pak.sh/install | bash
156
+
157
+ # Or download manually and run local installer
158
+ curl -sSL https://pak.sh/latest.tar.gz | tar -xz
159
+ cd pak.sh-*
160
+ ./install/install.sh
161
+
162
+ # The installer will:
163
+ # 1. Download latest release from pak.sh/latest.tar.gz
164
+ # 2. Extract and set executable permissions
165
+ # 3. Install to /usr/local/bin (or ~/.local/bin if no permissions)
166
+ # 4. Set up web interface and auto-start
167
+ # 5. Create configuration and data directories
168
+ ```
169
+
170
+ </details>
171
+
172
+ <details>
173
+ <summary><b>🪟 Windows</b></summary>
174
+
175
+ ### Option 1: WSL2 (Recommended)
176
+ ```powershell
177
+ # Install WSL2 with Ubuntu
178
+ wsl --install
179
+
180
+ # Restart your computer, then open Ubuntu terminal and run:
181
+ curl -sSL https://pak.sh/install | bash
182
+ ```
183
+
184
+ ### Option 2: Git Bash
185
+ ```bash
186
+ # Install Git for Windows, then in Git Bash:
187
+ curl -sSL https://pak.sh/install | bash
188
+ ```
189
+
190
+ ### Option 3: PowerShell (Advanced)
191
+ ```powershell
192
+ # Install WSL2 first, then use bash scripts
193
+ wsl --install
194
+ wsl curl -sSL https://pak.sh/install | wsl bash
195
+ ```
196
+ </details>
197
+
198
+ <details>
199
+ <summary><b>📦 Package Managers</b></summary>
200
+
201
+ ```bash
202
+ # npm (Recommended)
203
+ npm install -g pak-sh
204
+ pak-sh install
205
+
206
+ # pip (Python)
207
+ pip install pak-sh
208
+ pak-sh install
209
+
210
+ # Cargo (Rust)
211
+ cargo install pak-sh
212
+ pak-sh install
213
+
214
+ # Homebrew (macOS/Linux)
215
+ brew install pak-sh
216
+ pak-sh install
217
+
218
+ # Chocolatey (Windows)
219
+ choco install pak-sh
220
+ pak-sh install
221
+
222
+ # Scoop (Windows)
223
+ scoop install pak-sh
224
+ pak-sh install
225
+
226
+ # Packagist (PHP Composer)
227
+ composer global require pak/pak-sh
228
+ pak-sh install
229
+
230
+ # Go Modules
231
+ go install github.com/pak/pak-sh@latest
232
+ pak-sh install
233
+ ```
234
+
235
+ </details>
236
+
237
+ ### Your First Deployment
238
+
239
+ ```bash
240
+ # 1. Register with all platforms (one-time setup)
241
+ $ pak register
242
+
243
+ 🧙 PAK.sh Registration Wizard
244
+ =============================
245
+ ✓ Successfully registered with 13 platforms!
246
+
247
+ # 2. Initialize PAK in your project
248
+ $ pak init
249
+
250
+ 🚀 Initializing Package Automation Kit...
251
+ ✓ Detected: my-awesome-package (npm, pypi, cargo)
252
+ ✓ Configuration created
253
+ ✓ Ready to deploy!
254
+
255
+ # 3. Deploy to all platforms
256
+ $ pak deploy --version 1.0.0
257
+
258
+ 📦 Deploying to 3 platforms...
259
+ ✓ All deployments successful!
260
+
261
+ # 4. Track your package
262
+ $ pak track
263
+
264
+ 📊 Real-time statistics:
265
+ ├── npm: 1,234 downloads
266
+ ├── pypi: 567 downloads
267
+ └── cargo: 89 downloads
268
+
269
+ # 5. Start web interface (optional)
270
+ $ pak web
271
+
272
+ 🌐 Web interface available at: http://localhost:5000
273
+ ```
274
+
275
+ ## 🛠️ Command Reference
276
+
277
+ ### Core Commands
278
+
279
+ ```bash
280
+ pak init # Initialize PAK in current directory
281
+ pak register # Interactive platform registration wizard
282
+ pak deploy [package] # Deploy to all configured platforms
283
+ pak track [package] # Track package statistics
284
+ pak scan [package] # Security vulnerability scan
285
+ pak monitor [package] # Start real-time monitoring
286
+ pak status # Show system status
287
+ pak version # Show version information
288
+ pak web # Start web interface
289
+ ```
290
+
291
+ ### Deployment Commands
292
+
293
+ ```bash
294
+ pak deploy [package] # Deploy to all configured platforms
295
+ pak deploy list # List deployment history
296
+ pak deploy rollback # Rollback deployment
297
+ pak deploy verify # Verify deployment
298
+ pak deploy clean # Clean deployment artifacts
299
+ ```
300
+
301
+ ### Registration Commands
302
+
303
+ ```bash
304
+ pak register # Interactive registration wizard
305
+ pak register-all # Register with all supported platforms
306
+ pak register-platform # Register with specific platform
307
+ pak register-test # Test platform credentials
308
+ pak register-list # List registered platforms
309
+ pak register-export # Export credentials
310
+ pak register-import # Import credentials
311
+ pak register-clear # Clear all credentials
312
+ ```
313
+
314
+ ### Embed & Telemetry Commands
315
+
316
+ ```bash
317
+ pak embed init # Initialize embed system
318
+ pak embed telemetry # Track telemetry events
319
+ pak embed analytics # Analytics operations
320
+ pak embed track # Track various events
321
+ pak embed report # Generate reports
322
+ ```
323
+
324
+ ### Help & Documentation
325
+
326
+ ```bash
327
+ pak help [command] # Command-specific help
328
+ pak docs # Show documentation
329
+ pak docs search # Search documentation
330
+ ```
331
+
332
+ ### Platform Management
333
+
334
+ ```bash
335
+ pak platform list # List all supported platforms
336
+ pak platform add <name> # Add platform to project
337
+ pak platform remove <name> # Remove platform from project
338
+ pak platform test <name> # Test platform connectivity
339
+ ```
340
+
341
+ ### Tracking & Analytics
342
+
343
+ ```bash
344
+ pak track [package] # Track package statistics
345
+ pak stats [package] # Show package statistics
346
+ pak export [package] # Export tracking data
347
+ pak analytics [package] # Generate analytics report
348
+ ```
349
+
350
+ ### Developer Experience (Devex)
351
+
352
+ ```bash
353
+ pak devex wizard # Interactive project setup wizard
354
+ pak devex init # Initialize new project
355
+ pak devex setup # Setup development environment
356
+ pak devex template create # Create project template
357
+ pak devex docs # Generate documentation
358
+ pak devex scaffold # Scaffold project structure
359
+ pak devex env # Manage environment
360
+ pak devex lint # Run linting
361
+ pak devex format # Format code
362
+ ```
363
+
364
+ ### Web Interface & Integration
365
+
366
+ ```bash
367
+ pak web # Start web interface
368
+ pak web start # Start web server
369
+ pak web stop # Stop web server
370
+ pak web status # Check web server status
371
+ pak webhook add # Add webhook
372
+ pak api start # Start API server
373
+ pak plugin install # Install plugin
374
+ ```
375
+
376
+ ### Database & Storage
377
+
378
+ ```bash
379
+ pak db # Database operations
380
+ pak sqlite # SQLite operations
381
+ pak backup # Create backup
382
+ pak restore # Restore from backup
383
+ pak migrate # Run migrations
384
+ pak query # Execute queries
385
+ pak stats # Show statistics
386
+ ```
387
+
388
+ ### Enterprise Features
389
+
390
+ ```bash
391
+ pak billing # Billing management
392
+ pak sla # SLA monitoring
393
+ pak cost # Cost analysis
394
+ pak team add # Add team member
395
+ pak audit start # Start audit logging
396
+ ```
397
+
398
+ ### Security Commands
399
+
400
+ ```bash
401
+ pak security audit # Full security audit
402
+ pak security fix # Auto-fix security issues
403
+ pak license check # Check license compliance
404
+ pak license validate # Validate licenses
405
+ pak scan [package] # Security vulnerability scan
406
+ ```
407
+
408
+ ### Automation Commands
409
+
410
+ ```bash
411
+ pak pipeline create # Create CI/CD pipeline
412
+ pak pipeline list # List pipelines
413
+ pak git hooks install # Install Git hooks
414
+ pak workflow create # Create workflow
415
+ pak auto-deploy # Automated deployment
416
+ pak schedule # Schedule deployments
417
+ pak release # Release management
418
+ pak test # Run tests
419
+ pak build # Build package
420
+ ```
421
+
422
+ ### Monitoring Commands
423
+
424
+ ```bash
425
+ pak monitor [package] # Start real-time monitoring
426
+ pak health [package] # Health check package
427
+ pak alerts list # List alerts
428
+ pak alerts create # Create alert
429
+ pak dashboard # Show monitoring dashboard
430
+ pak metrics # Show metrics
431
+ pak availability # Check availability
432
+ pak performance # Performance monitoring
433
+ ```
434
+
435
+ ### User Interface Commands
436
+
437
+ ```bash
438
+ pak ascii show # Show ASCII art
439
+ pak config get/set # Manage configuration
440
+ pak db status # Show database status
441
+ pak log show # Show recent logs
442
+ ```
443
+
444
+ ### Lifecycle Commands
445
+
446
+ ```bash
447
+ pak lifecycle deprecate # Deprecate package
448
+ pak lifecycle sunset # Sunset package
449
+ pak lifecycle migrate # Migrate package
450
+ pak version bump # Bump version
451
+ pak release create # Create release
452
+ pak deps check # Check dependencies
453
+ ```
454
+
455
+ ### Debugging & Performance
456
+
457
+ ```bash
458
+ pak debug enable # Enable debug mode
459
+ pak troubleshoot # Troubleshoot issue
460
+ pak optimize cache # Optimize cache
461
+ pak perf benchmark # Benchmark package
462
+ ```
463
+
464
+ ### Networking & API
465
+
466
+ ```bash
467
+ pak network test # Test network connectivity
468
+ pak api key # Set API key
469
+ pak api test # Test API connection
470
+ pak api start # Start API server
471
+ ```
472
+
473
+ ### Update & Maintenance
474
+
475
+ ```bash
476
+ pak update check # Check for updates
477
+ pak maintenance start # Start maintenance mode
478
+ pak backup create # Create backup
479
+ ```
480
+
481
+ ### Reporting & Compliance
482
+
483
+ ```bash
484
+ pak report generate # Generate report
485
+ pak gdpr check # Check GDPR compliance
486
+ pak policy enforce # Enforce policies
487
+ ```
488
+
489
+ ### Specialized Commands
490
+
491
+ ```bash
492
+ pak unity deploy # Deploy Unity asset
493
+ pak docker build # Build Docker image
494
+ pak aws deploy # Deploy to AWS
495
+ pak vscode setup # Setup VS Code integration
496
+ ```
497
+
498
+ ### Advanced Features
499
+
500
+ ```bash
501
+ pak rollback <version> # Rollback to previous version
502
+ pak analytics <package> # Generate analytics report
503
+ ```
504
+
505
+ <div align="center">
506
+ <a href="https://pak.sh/commands">📚 View Full Command Reference</a>
507
+ </div>
508
+
509
+ ## 📦 Supported Platforms
510
+
511
+ <div align="center">
512
+
513
+ ### Language-Specific Registries
514
+
515
+ | Platform | Language | Command |
516
+ |----------|----------|---------|
517
+ | 📦 **npm** | JavaScript/Node.js | `pak deploy --platform npm` |
518
+ | 🐍 **PyPI** | Python | `pak deploy --platform pypi` |
519
+ | 🦀 **Cargo** | Rust | `pak deploy --platform cargo` |
520
+ | 🔷 **NuGet** | .NET/C# | `pak deploy --platform nuget` |
521
+ | 💎 **RubyGems** | Ruby | `pak deploy --platform rubygems` |
522
+ | ☕ **Maven** | Java | `pak deploy --platform maven` |
523
+ | 🐘 **Packagist** | PHP | `pak deploy --platform packagist` |
524
+ | 🐹 **Go Modules** | Go | `pak deploy --platform go` |
525
+
526
+ ### Container & Cloud Platforms
527
+
528
+ | Platform | Type | Command |
529
+ |----------|------|---------|
530
+ | 🐳 **Docker Hub** | Containers | `pak deploy --platform docker` |
531
+ | ☸️ **Helm** | Kubernetes | `pak deploy --platform helm` |
532
+ | 🐙 **GitHub Packages** | Universal | `pak deploy --platform github` |
533
+ | 🦊 **GitLab Registry** | Universal | `pak deploy --platform gitlab` |
534
+
535
+ <a href="https://pak.sh/platforms">🌐 View All 30+ Platforms</a>
536
+
537
+ </div>
538
+
539
+ ## 🔧 Configuration
540
+
541
+ ### Basic Configuration
542
+
543
+ ```yaml
544
+ # pak.yaml
545
+ name: my-awesome-package
546
+ version: 1.2.3
547
+ description: An awesome package deployed with PAK.sh
548
+
549
+ platforms:
550
+ npm:
551
+ enabled: true
552
+ registry: https://registry.npmjs.org
553
+
554
+ pypi:
555
+ enabled: true
556
+ repository: https://pypi.org
557
+
558
+ docker:
559
+ enabled: true
560
+ registry: docker.io
561
+ image: myuser/mypackage
562
+
563
+ deployment:
564
+ auto_deploy: true
565
+ environments:
566
+ - production
567
+ - staging
568
+
569
+ monitoring:
570
+ alerts:
571
+ email: team@example.com
572
+ slack: https://hooks.slack.com/...
573
+ ```
574
+
575
+ ### Environment Variables
576
+
577
+ ```bash
578
+ # Platform Tokens (set up via 'pak register')
579
+ export NPM_TOKEN="npm_xxxxxxxxxxxx"
580
+ export PYPI_TOKEN="pypi-xxxxxxxxxxxx"
581
+ export DOCKER_TOKEN="dckr_xxxxxxxxxxxx"
582
+
583
+ # PAK Configuration
584
+ export PAK_LOG_LEVEL="INFO"
585
+ export PAK_PARALLEL_JOBS="5"
586
+ export PAK_TIMEOUT="300"
587
+ ```
588
+
589
+ ## 📊 Dashboard & Analytics
590
+
591
+ <div align="center">
592
+
593
+ ```
594
+ ┌─────────────────────────────────────────────────────────────────┐
595
+ │ 📊 PAK.sh Analytics Dashboard │
596
+ ├─────────────────────────────────────────────────────────────────┤
597
+ │ │
598
+ │ Total Downloads Unique Users Active Platforms │
599
+ │ 1,234,567 45,678 12/30 │
600
+ │ ↑23% ↑15% ✓ │
601
+ │ │
602
+ │ ┌─────────────────────────────────────────────────────────┐ │
603
+ │ │ Weekly Downloads │ │
604
+ │ │ 10k ┤ ╭────────│ │
605
+ │ │ 8k ┤ ╭─────╯ │ │
606
+ │ │ 6k ┤ ╭──────╯ │ │
607
+ │ │ 4k ┤ ╭──────╯ │ │
608
+ │ │ 2k ┤───────────────╭──────╯ │ │
609
+ │ │ 0 └─────────────────────────────────────────────────│ │
610
+ │ │ Mon Tue Wed Thu Fri Sat Sun │ │
611
+ │ └─────────────────────────────────────────────────────────┘ │
612
+ │ │
613
+ │ Top Platforms: Recent Activity: │
614
+ │ 1. npm (45%) • Deployed v1.2.3 (2 min ago) │
615
+ │ 2. pypi (25%) • Security scan passed │
616
+ │ 3. docker (15%) • 1,234 new downloads │
617
+ │ │
618
+ └─────────────────────────────────────────────────────────────┘
619
+ ```
620
+
621
+ <a href="https://pak.sh/demo">🖥️ View Live Demo</a>
622
+
623
+ </div>
624
+
625
+ ## 🤝 Contributing
626
+
627
+ We love contributions! PAK.sh is built by developers, for developers.
628
+
629
+ ```bash
630
+ # 1. Fork the repository
631
+ git clone https://github.com/YOUR_USERNAME/pak.sh
632
+ cd pak.sh
633
+
634
+ # 2. Create a feature branch
635
+ git checkout -b feature/amazing-feature
636
+
637
+ # 3. Make your changes
638
+ code .
639
+
640
+ # 4. Run tests
641
+ pak test
642
+
643
+ # 5. Submit a pull request
644
+ git push origin feature/amazing-feature
645
+ ```
646
+
647
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.
648
+
649
+ ## 🗺️ Roadmap
650
+
651
+ <details>
652
+ <summary><b>2024 Q1</b> ✅ Completed</summary>
653
+
654
+ - ✅ Multi-platform deployment engine
655
+ - ✅ Real-time analytics dashboard
656
+ - ✅ Security scanning integration
657
+ - ✅ CLI interface v2.0
658
+
659
+ </details>
660
+
661
+ <details>
662
+ <summary><b>2024 Q2</b> 🚧 In Progress</summary>
663
+
664
+ - 🚧 AI-powered deployment optimization
665
+ - 🚧 Mobile app (iOS/Android)
666
+ - 🚧 Enhanced webhook system
667
+ - 🚧 GraphQL API
668
+
669
+ </details>
670
+
671
+ <details>
672
+ <summary><b>2024 Q3</b> 📋 Planned</summary>
673
+
674
+ - 📋 Blockchain package verification
675
+ - 📋 Decentralized deployment network
676
+ - 📋 Machine learning predictions
677
+ - 📋 Voice control integration
678
+
679
+ </details>
680
+
681
+ ## 📈 Stats & Community
682
+
683
+ <div align="center">
684
+
685
+ | Metric | Value |
686
+ |--------|-------|
687
+ | **Total Packages Deployed** | 1M+ |
688
+ | **Active Users** | 45K+ |
689
+ | **Platform Integrations** | 30+ |
690
+ | **Average Deploy Time** | 45s |
691
+ | **Uptime** | 99.9% |
692
+ | **Community Stars** | ⭐ 12.5K |
693
+
694
+ ### Join Our Community
695
+
696
+ [![Discord](https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/paksh)
697
+ [![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/paksh)
698
+ [![GitHub](https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/pak/pak.sh)
699
+
700
+ </div>
701
+
702
+ ## 📄 License
703
+
704
+ PAK.sh is open source software licensed under the [MIT License](LICENSE).
705
+
706
+ ```
707
+ MIT License
708
+
709
+ Copyright (c) 2024 PAK.sh
710
+
711
+ Permission is hereby granted, free of charge, to any person obtaining a copy
712
+ of this software and associated documentation files (the "Software"), to deal
713
+ in the Software without restriction...
714
+ ```
715
+
716
+ ---
717
+
718
+ <div align="center">
719
+
720
+ ### Built with ❤️ by developers, for developers
721
+
722
+ <br>
723
+
724
+ <img src="https://raw.githubusercontent.com/pak/pak.sh/main/assets/terminal-demo.gif" alt="PAK.sh Demo" width="600">
725
+
726
+ <br>
727
+ <br>
728
+
729
+ **[Get Started](https://pak.sh)** • **[Documentation](https://pak.sh/docs)** • **[API](https://pak.sh/api)** • **[Blog](https://pak.sh/blog)**
730
+
731
+ </div>
data/bin/pak-sh ADDED
@@ -0,0 +1,229 @@
1
+ #!/usr/bin/env bash
2
+ # PAK.sh Wrapper Script
3
+ # This script provides a unified interface for PAK.sh regardless of installation method
4
+
5
+ set -euo pipefail
6
+
7
+ # Colors for output
8
+ RED='\033[0;31m'
9
+ GREEN='\033[0;32m'
10
+ YELLOW='\033[1;33m'
11
+ BLUE='\033[0;34m'
12
+ PURPLE='\033[0;35m'
13
+ CYAN='\033[0;36m'
14
+ WHITE='\033[1;37m'
15
+ NC='\033[0m' # No Color
16
+
17
+ # PAK.sh configuration
18
+ PAK_VERSION="2.0.0"
19
+ PAK_DOMAIN="pak.sh"
20
+ PAK_INSTALL_URL="https://pak.sh/install"
21
+ PAK_LATEST_URL="https://pak.sh/latest.tar.gz"
22
+
23
+ # Installation paths to check (in order of preference)
24
+ PAK_PATHS=(
25
+ "/usr/local/bin/pak"
26
+ "/opt/pak/bin/pak"
27
+ "$HOME/.local/bin/pak"
28
+ "$HOME/.pak/bin/pak"
29
+ "./pak/pak.sh"
30
+ "./node_modules/.bin/pak"
31
+ "./venv/bin/pak"
32
+ "./.cargo/bin/pak"
33
+ )
34
+
35
+ # Function to find PAK.sh installation
36
+ find_pak_installation() {
37
+ for path in "${PAK_PATHS[@]}"; do
38
+ if [[ -f "$path" && -x "$path" ]]; then
39
+ echo "$path"
40
+ return 0
41
+ fi
42
+ done
43
+ return 1
44
+ }
45
+
46
+ # Function to install PAK.sh
47
+ install_pak() {
48
+ echo -e "${BLUE}🚀 Installing PAK.sh...${NC}"
49
+
50
+ # Create installation directory
51
+ local install_dir="$HOME/.pak"
52
+ mkdir -p "$install_dir/bin"
53
+
54
+ # Download and install
55
+ echo -e "${BLUE}📥 Downloading PAK.sh...${NC}"
56
+ local temp_dir=$(mktemp -d)
57
+ cd "$temp_dir"
58
+
59
+ if command -v curl >/dev/null 2>&1; then
60
+ curl -L -o pak.tar.gz "$PAK_LATEST_URL"
61
+ elif command -v wget >/dev/null 2>&1; then
62
+ wget -O pak.tar.gz "$PAK_LATEST_URL"
63
+ else
64
+ echo -e "${RED}❌ Error: Neither curl nor wget found${NC}"
65
+ exit 1
66
+ fi
67
+
68
+ # Extract and install
69
+ echo -e "${BLUE}📦 Extracting PAK.sh...${NC}"
70
+ tar -xzf pak.tar.gz
71
+
72
+ # Find extracted directory
73
+ local extracted_dir=""
74
+ if [[ -d "pak.sh-main" ]]; then
75
+ extracted_dir="pak.sh-main"
76
+ elif [[ -d "pak.sh-*" ]]; then
77
+ extracted_dir=$(ls -d pak.sh-* | head -1)
78
+ else
79
+ echo -e "${RED}❌ Error: Could not find extracted directory${NC}"
80
+ exit 1
81
+ fi
82
+
83
+ cd "$extracted_dir"
84
+
85
+ # Set permissions
86
+ echo -e "${BLUE}🔐 Setting permissions...${NC}"
87
+ find . -name "*.sh" -type f -exec chmod +x {} \;
88
+ find . -name "*.py" -type f -exec chmod +x {} \;
89
+
90
+ # Run installer
91
+ if [[ -f "install/install.sh" ]]; then
92
+ echo -e "${BLUE}🔧 Running installer...${NC}"
93
+ INSTALL_DIR="$install_dir/bin" ./install/install.sh
94
+ else
95
+ # Manual installation
96
+ echo -e "${BLUE}📁 Installing to $install_dir/bin...${NC}"
97
+ cp -r pak "$install_dir/bin/"
98
+ chmod +x "$install_dir/bin/pak"
99
+ fi
100
+
101
+ # Cleanup
102
+ cd /
103
+ rm -rf "$temp_dir"
104
+
105
+ echo -e "${GREEN}✅ PAK.sh installed successfully!${NC}"
106
+ echo -e "${CYAN}📁 Installation location: $install_dir/bin/pak${NC}"
107
+ echo -e "${YELLOW}💡 Add to PATH: export PATH=\"$install_dir/bin:\$PATH\"${NC}"
108
+ }
109
+
110
+ # Function to show help
111
+ show_help() {
112
+ cat << EOF
113
+ PAK.sh Wrapper Script v$PAK_VERSION
114
+
115
+ Usage: pak-sh [command] [options]
116
+
117
+ Commands:
118
+ install Install PAK.sh locally
119
+ run [command] [options] Run PAK.sh command
120
+ update Update PAK.sh installation
121
+ status Check PAK.sh installation status
122
+ help Show this help message
123
+
124
+ Examples:
125
+ pak-sh install # Install PAK.sh
126
+ pak-sh run deploy # Run: pak deploy
127
+ pak-sh run init # Run: pak init
128
+ pak-sh status # Check installation status
129
+
130
+ Installation Methods:
131
+ 1. Direct: curl -sSL https://pak.sh/install | bash
132
+ 2. Wrapper: pak-sh install
133
+ 3. Package Managers:
134
+ - npm: npm install -g pak-sh
135
+ - pip: pip install pak-sh
136
+ - cargo: cargo install pak-sh
137
+ - brew: brew install pak-sh
138
+
139
+ For more information, visit: https://pak.sh
140
+ EOF
141
+ }
142
+
143
+ # Function to check status
144
+ check_status() {
145
+ echo -e "${BLUE}🔍 Checking PAK.sh installation status...${NC}"
146
+
147
+ local pak_path=$(find_pak_installation)
148
+ if [[ -n "$pak_path" ]]; then
149
+ echo -e "${GREEN}✅ PAK.sh found at: $pak_path${NC}"
150
+
151
+ # Get version
152
+ if "$pak_path" version >/dev/null 2>&1; then
153
+ local version=$("$pak_path" version 2>/dev/null | head -1)
154
+ echo -e "${GREEN}📦 Version: $version${NC}"
155
+ fi
156
+
157
+ # Check if in PATH
158
+ if command -v pak >/dev/null 2>&1; then
159
+ echo -e "${GREEN}✅ 'pak' command available in PATH${NC}"
160
+ else
161
+ echo -e "${YELLOW}⚠️ 'pak' command not in PATH${NC}"
162
+ echo -e "${CYAN}💡 Add to PATH: export PATH=\"$(dirname "$pak_path"):\$PATH\"${NC}"
163
+ fi
164
+ else
165
+ echo -e "${RED}❌ PAK.sh not found${NC}"
166
+ echo -e "${YELLOW}💡 Run 'pak-sh install' to install PAK.sh${NC}"
167
+ return 1
168
+ fi
169
+ }
170
+
171
+ # Function to update PAK.sh
172
+ update_pak() {
173
+ echo -e "${BLUE}🔄 Updating PAK.sh...${NC}"
174
+
175
+ local pak_path=$(find_pak_installation)
176
+ if [[ -z "$pak_path" ]]; then
177
+ echo -e "${RED}❌ PAK.sh not found. Run 'pak-sh install' first.${NC}"
178
+ exit 1
179
+ fi
180
+
181
+ # Backup current installation
182
+ local backup_dir="$HOME/.pak/backup/$(date +%Y%m%d_%H%M%S)"
183
+ mkdir -p "$backup_dir"
184
+ cp -r "$(dirname "$pak_path")" "$backup_dir/"
185
+
186
+ echo -e "${BLUE}💾 Backup created at: $backup_dir${NC}"
187
+
188
+ # Reinstall
189
+ install_pak
190
+
191
+ echo -e "${GREEN}✅ PAK.sh updated successfully!${NC}"
192
+ }
193
+
194
+ # Main function
195
+ main() {
196
+ local command="${1:-help}"
197
+
198
+ case "$command" in
199
+ install)
200
+ install_pak
201
+ ;;
202
+ run)
203
+ shift
204
+ local pak_path=$(find_pak_installation)
205
+ if [[ -z "$pak_path" ]]; then
206
+ echo -e "${RED}❌ PAK.sh not found. Run 'pak-sh install' first.${NC}"
207
+ exit 1
208
+ fi
209
+ exec "$pak_path" "$@"
210
+ ;;
211
+ status)
212
+ check_status
213
+ ;;
214
+ update)
215
+ update_pak
216
+ ;;
217
+ help|--help|-h)
218
+ show_help
219
+ ;;
220
+ *)
221
+ echo -e "${RED}❌ Unknown command: $command${NC}"
222
+ echo -e "${YELLOW}💡 Run 'pak-sh help' for usage information${NC}"
223
+ exit 1
224
+ ;;
225
+ esac
226
+ }
227
+
228
+ # Run main function with all arguments
229
+ main "$@"
data/lib/pak_sh.rb ADDED
@@ -0,0 +1,20 @@
1
+ # PAK.sh Wrapper Ruby Library
2
+ # Provides Ruby interface for PAK.sh operations
3
+
4
+ module PakSh
5
+ VERSION = "2.0.1"
6
+
7
+ class Wrapper
8
+ def self.install
9
+ system("pak-sh install")
10
+ end
11
+
12
+ def self.status
13
+ system("pak-sh status")
14
+ end
15
+
16
+ def self.run(command, *args)
17
+ system("pak-sh run #{command}", *args)
18
+ end
19
+ end
20
+ end
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pak-sh
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.1
5
+ platform: ruby
6
+ authors:
7
+ - PAK.sh Team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-07-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ description: Professional wrapper for PAK.sh installation and management via various
70
+ package managers
71
+ email:
72
+ - team@pak.sh
73
+ executables:
74
+ - pak-sh
75
+ extensions: []
76
+ extra_rdoc_files: []
77
+ files:
78
+ - README.md
79
+ - bin/pak-sh
80
+ - lib/pak_sh.rb
81
+ homepage: https://pak.sh
82
+ licenses:
83
+ - MIT
84
+ metadata:
85
+ homepage_uri: https://pak.sh
86
+ source_code_uri: https://github.com/cyber-boost/pak
87
+ changelog_uri: https://github.com/cyber-boost/pak/blob/main/CHANGELOG.md
88
+ bug_tracker_uri: https://github.com/cyber-boost/pak/issues
89
+ documentation_uri: https://pak.sh/docs
90
+ post_install_message: "\U0001F680 PAK.sh Wrapper has been installed!\n\nTo install
91
+ PAK.sh, run:\n pak-sh install\n\nTo check status:\n pak-sh status\n\nTo run PAK.sh
92
+ commands:\n pak-sh run init\n pak-sh run deploy my-package\n pak-sh run web\n\nDocumentation:
93
+ https://pak.sh/docs\nGitHub: https://github.com/cyber-boost/pak\n"
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: 2.6.0
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ requirements:
108
+ - Bash shell
109
+ - curl
110
+ - git
111
+ rubygems_version: 3.4.20
112
+ signing_key:
113
+ specification_version: 4
114
+ summary: PAK.sh - Universal Package Automation Kit Wrapper
115
+ test_files: []