Skip to main content

格式化shell脚本

工具说明

开发环境为 win7, 测试环境和生产环境均为linux,经常出现这样的问题: 在开发环境下写的shell脚本文件,发布到测试环境和生产环境,就会出现兼容问题,无法运行。

安装及使用

安装:

pip install shellfmt

使用:

shellfmt --fname=myproject.sh

或者对整个目录使用:

shellfmt --fname=d:\projet\myshell

Release files for shellfmt 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shellfmt 0.1.2
File Size Uploaded
shellfmt-0.1.2.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shellfmt 0.1.2
File Interpreter ABI Platform
shellfmt-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / shellfmt-0.1.2.tar.gz

Download URL shellfmt-0.1.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2775217afc4aadc2f24514848dfe0b80d6d81491d29301465c47dd8f4f72c569
BLAKE2b-256 checksum
How to use checksums
2419fa595c41ecd758ddc67ec5b171e91420fa7df67a6846bccae21d2fb73459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/24.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.25.11 tqdm/4.60.0 importlib-metadata/1.5.0 keyring/21.1.1 rfc3986/1.4.0 colorama/0.4.4 CPython/3.6.13

Release files / shellfmt-0.1.2-py3-none-any.whl

Download URL shellfmt-0.1.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b242b62f84adfb3fb0c3e8d39304180f7a4c84eaa3f7f3815fdd742ff95def60
BLAKE2b-256 checksum
How to use checksums
966cba580f3b62848a49a2edbc49788014089c80f5153816cd145a9af61e9748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/24.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.25.11 tqdm/4.60.0 importlib-metadata/1.5.0 keyring/21.1.1 rfc3986/1.4.0 colorama/0.4.4 CPython/3.6.13

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page