feat: add docs info
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
1 parent
2ba5a4275a
commit
e68af011d4
9 files changed
+38
-14
No files matched your search
+6
-3
@@ -16,10 +16,13 @@ func init() {
|
||||
}
|
||||
|
||||
var usersImportCmd = &cobra.Command{
|
||||
Use: "import <filename>",
|
||||
Use: "import <path>",
|
||||
Short: "Import users from a file",
|
||||
Long: "Import users from a file.",
|
||||
Args: jsonYamlArg,
|
||||
Long: `Import users from a file. The path must be for a json or yaml
|
||||
file. You can use this command to import new users to your
|
||||
installation. For that, just don't place their ID on the files
|
||||
list or set it to 0.`,
|
||||
Args: jsonYamlArg,
|
||||
Run: python(func(cmd *cobra.Command, args []string, d pythonData) {
|
||||
fd, err := os.Open(args[0])
|
||||
checkErr(err)
|
||||
|
||||
Reference in new issue
Block a user