jishell-cli

command module
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

jishell-cli (jishell generator)

本项目参考spf13/cobra-cli进行开发,主要用于辅助用户创建jishell应用。

使用

  1. 下载jishell-cli
    • go get github.com/chroblert/jishell-cli
  2. go mod init <mod name>

创建app

jishell-cli init [--package <package name>]

  • 若不使用flag,则在当前目录创建main.go,app.go及cmd文件
  • 若使用flag,则以<package name>为名新建一个目录,在目录中创建main.go,app.go及cmd文件

添加命令

jishell-cli add [-p <parent command path>] <sub command>

新建一个子命令

  • <parent command>格式为:自cmd(不包括)开始的命令路径。如:s1/xx2
  • 若不传入flag,则在cmd目录下创建一个名为<sub command>的.go文件
  • 若传入flag,则在指定的命令路径下创建一个名为<sub command>的.go文件

支持jishell-cli add info/scan/portscan格式

注:

  • 使用-p,则<sub command>中不能带有/
  • 需要与cmd目录处于同一个目录下,才能运行

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址