Command line

Note

The documentation in this section is aimed at people wishing to contribute to histofile, and can be skipped if you are simply using the tool from the command line.

Commands

commands.list(args)

List history entries.

Parameters:args (table) – Parsed arguments
Return type:int
Returns:0 on success, 2 when no entries are found
commands.new(args)

Add new history entry.

Parameters:args (table) – Parsed arguments
Return type:int
Returns:0 on success, 5 when writing fails
commands.update(args)

Update history file.

Parameters:args (table) – Parsed arguments
Return type:int
Returns:0 on success, 2 when no entries are found

Entry points

main()

Main entry point.

CLI support

parse_args()

Parse command line arguments.

Return type:table
Returns:Processed command line arguments