Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分命令的英文全称 #348

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

zz541843
Copy link

看着英文全称记缩写命令应该更有帮助,实在太多了,分批次弄吧...

@@ -1,5 +1,6 @@
apt-get
===
`Advanced Package Tool Get`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以放到说明详情中, 命令介绍有别的用处。
@zz541843

如果你添加到此位置的 英文全称,那么命令的详情介绍就是英文全称

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没看懂,什么叫 "那么命令的详情介绍就是英文全称了" 我的想法就只是在命令这个标题下加个小注释的样子,知道全称是什么所以用``围了起来
image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在脚本中,需要爬命令的“详情“

image

所以全称不能放在这个位置。

@zz541843

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我应该知道你的意思了,我是觉得,这样显示出来的效果比放在补充说明里更直接一点。如果这样不行的话,那以后有空搞吧

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在脚本中,需要爬命令的“详情“

image

所以全称不能放在这个位置。

@zz541843

那确实是个问题...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样虽然也可以,就是视觉上略差一丢丢
image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果你愿意的话,把爬详情的代码从原来的第4行改成第6行就可以了,你现在也是规范的放在第4行

Copy link
Owner

@jaywcjlove jaywcjlove Apr 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let des = str.match(/\n==={1,}([\s\S]*?)##/i);

规范是从 === 到 第一个 ## 中间内容是详情,你这有的有 命令全称,有的没有。 把第一个 `` 两个点之间的内容为命令全称

Comment on lines +3 to +5
`Visual Editor`

`vim => Visual Editor Improved`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果我们约定命令全称, 此处又不太符合的样子

Comment on lines +3 to 5
`本来应根据其功能描述“Convert an copy”命名为“cc”
但“cc”已经被用以代表“CComplier”,所以命名为“dd”`

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处如果新约定的 命令全称也不适合,是不是需要放到补充说明中还是比较好?
@zz541843

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants