3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

シェルスクリプトから仕様書を作るツール

Posted at

自分用のメモ。

結構探したけど、なかなかこれってのがない。

  • 極力書かなくて良い
  • markdownにできる
  • ぱっと動く

くらいしか思いはなかったんだが、結構ない。

で見つけたのが、これ

#!/bin/bash
#
# @file Title of file script
# @brief Small description of the script.

アノテーションスタイルなら簡単だな、と。

# @description Multiline description goes here and
# there
#
# @example
#   some:other:func a b c
#   echo 123
#
# @arg $1 string Some arg.
# @arg $@ any Rest of arguments.
#
# @noargs
#
# @exitcode 0  If successfull.
# @exitcode >0 On failure
# @exitcode 5  On some error.
#
# @stdout Path to something.
#
# @see some:other:func()
some:first:func() {

これでビルド時にドキュメント化させようかな

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?