unix / func Goto Github PK
View Code? Open in Web Editor NEWModern Command Line Framework.
Home Page: https://func.unix.bio
License: MIT License
Modern Command Line Framework.
Home Page: https://func.unix.bio
License: MIT License
vuepress
might be a good choice, but we also need to customize a set of themes.
or hugo
?
VSCode Typescript Def Jump to func code will trigger eslint error like this...
[Info - 9:07:43 PM] ESLint server is running.
(node:44343) UnhandledPromiseRejectionWarning: Error: Failed to load config "eslint-config-ts-lambdas" to extend from.
Referenced from: /Volumes/Code/xxxxx/node_modules/func/package.json
Remove the eslintConfig section in package.json
before release seems better?
Or this section been kept for some other reasons?
Expected:
init
async
functionExamples:
export class Command implements Init {
async init(): void {}
}
Programme:
Init
abstract classinit
hook at initialization and call it if it existsOthers:
exit
? (like user exit: command + c
or error)my-cli argument
Hi. Thanks for the neat little package. Been playing with it for some scripts I use personally I see it's quite handy.
I noticed that there's no information on whether func
can handle values of parameters.
Example:
tools test --input something --output abcd
Expected output:
// console.log(arg.option)
{
'--input': 'something',
'--output': 'abcd'
}
Is this already available in some form that I am missing? If so please can you point me to it.
If not, please do think of adding this :)
Expected:
Programme:
metadata
Injectable
from export modulesInjectable
is an internal service, users don't need to know.
Expected:
Examples:
@Command({
name: 'command',
alias: 'c',
})
export class Command {
}
and
<name> command
== <name> c
Programme:
alias
to command annotationalias
when command initialOthers:
missing
is more semantic than notFound
.NotFound
will be retained until the next major version.以 func-service
的 help action 为例 https://github.com/unix/func-service/blob/master/src/options/help.ts
全局安装后运行 func-service --help
只会输出 command 和 option 相关信息。 与 command 绑定的 sub-option 信息无法输出。
+ func-service --help
FUNC-SERVICE
build <command> -- pack all files
dev <command> -- setup link
--help -h <option> -- help
--version -v <option> -- version
+ func-service --help
FUNC-SERVICE
build <command> -- pack all files
--file -f <sub-option> -- ${possible subOption desc}
--out -o <sub-option> -- ${possible subOption desc}
dev <command> -- setup link
--file -f <sub-option> -- ${possible subOption desc}
--help -h <option> -- help
--version -v <option> -- version
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.