.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "LESANA-INIT" "1" "May 26, 2022" "0.10" "lesana" .SH NAME lesana-init \- initialize a lesana collection .SH SYNOPSIS .sp lesana init [–help] [–collection ] [–no\-git] .SH DESCRIPTION .sp lesana init initializes a new lesana collection. .sp It will create the directory (if it does not exist) and, unless \fB\-\-no\-git\fP is specified it will initialize it as a git repository, create a \fB\&.gitignore\fP file with some relevant contents and add hooks to update the local cache when the files are changed via git. .sp It will then create a skeleton \fBsettings.yaml\fP file and open it in an editor to start configuring the collection. .sp When leaving the editor, again unless \fB\-\-no\-git\fP is used, it will add this file to the git staging area, but not commit it. .sp It is safe to run this command on an existing repository, e.g. to install the hooks on a new clone, but it will overwrite the hooks themselves even if they have been changed by the user. .SH OPTIONS .INDENT 0.0 .TP .B \-\-help\fP,\fB \-h Prints an help message and exits. .TP .BI \-\-collection \ COLLECTION\fR,\fB \ \-c \ COLLECTION The directory where the collection will be initialized. Default is . .TP .B \-\-no\-git Do not use git in the current collection. .UNINDENT .SH AUTHOR valhalla@trueelena.org .SH COPYRIGHT 2020-2022, Elena Grandi .\" Generated by docutils manpage writer. .