-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comment style updated to conform to coding style.
Finsignia coding style uses foldmarks and vim directives in the comments to separate out Erlang source files. Most Erlang source files have sections like: * HEADER * CALLBACKS * PUBLIC API * PRIVATE FUNCTIONS Also document specifications added to some callback declarations as a reminder to the application developer what interface is expected.
- Loading branch information
Showing
5 changed files
with
92 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
#!/usr/bin/env escript | ||
%% -*- mode: erlang -*- | ||
%%%' HEADER | ||
%% @author {{author_name}} <{{author_email}}> | ||
%% @copyright {{copyright_year}} {{author_name}} | ||
%% @doc {{description}} | ||
%% @end | ||
-export([main/1]). | ||
|
||
-define(CMD, filename:basename(escript:script_name())). | ||
|
||
%% External API | ||
|
||
%%%. | ||
%%%' PUBLIC API | ||
%% @spec main(Args) -> void() | ||
%% where | ||
%% Args = [string()] | ||
main(_)-> | ||
usage(). | ||
|
||
%%%. | ||
%%%' PRIVATE FUNCTIONS | ||
%% @private | ||
usage() -> | ||
io:format("Usage: ~s ...~n", [?CMD]), | ||
halt(1). | ||
|
||
%%%. | ||
%%% vim: set filetype=erlang tabstop=2 foldmarker=%%%',%%%. foldmethod=marker: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters