定制 cryodrift/shell 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cryodrift/shell

最新稳定版本:0.1.29

Composer 安装命令:

composer require cryodrift/shell

包简介

Shell - Command Line Utilities

README 文档

README

Shell - Command Line Utilities

Shell is a collection of command-line utilities for text processing, file manipulation, and web page screenshot capture.

Features

Text Processing

  • Remove duplicate lines from text
  • Sort lines alphabetically
  • Group lines by tokens

File Manipulation

  • Replace text in files
  • Process piped input

Web Utilities

  • Capture screenshots of web pages using Chrome

CLI Commands

Text Processing

undupe

Removes duplicate lines from input.

php index.php /shell undupe -file="filename.txt"

or

cat filename.txt | php index.php /shell undupe -file

sort

Sorts lines alphabetically.

php index.php /shell sort -file="filename.txt"

or

cat filename.txt | php index.php /shell sort -file

group

Groups lines by tokens.

php index.php /shell group -file="filename.txt"

or

cat filename.txt | php index.php /shell group -file

File Manipulation

replace

Replaces text in a file or piped data.

php index.php /shell replace -search="searchstring" -replace="replacestring" -file="filename.txt"

or

dir | php index.php /shell replace "searchstring" "replacestring" -file

When using a file, the output is saved to filename.txt.new.

Web Utilities

screenshot

Takes a screenshot of a web page using Chrome.

php index.php /shell screenshot -url="/"

Options:

  • -small - Capture a smaller screenshot (800x600 instead of 1920x1200)

The screenshot is saved to out.jpg in the project root directory.

Setup and Configuration

  1. Ensure PHP is installed and configured
  2. For the screenshot functionality, Google Chrome must be installed in the default location

Development

The Shell component uses the CliHandler trait to process command-line arguments and provide a consistent interface for all commands.

License

This project is proprietary software.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固