feat: better error handling for sys kill signals

This commit is contained in:
Jagadam Dinesh Reddy 2025-07-22 11:55:21 +05:30 committed by GitHub
parent 21ad653b7e
commit 1582b8b2cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 876 additions and 361 deletions

View file

@ -14,11 +14,16 @@ var usersExportCmd = &cobra.Command{
Long: `Export all users to a json or yaml file. Please indicate the
path to the file where you want to write the users.`,
Args: jsonYamlArg,
Run: python(func(_ *cobra.Command, args []string, d pythonData) {
RunE: python(func(_ *cobra.Command, args []string, d *pythonData) error {
list, err := d.store.Users.Gets("")
checkErr(err)
if err != nil {
return err
}
err = marshal(args[0], list)
checkErr(err)
if err != nil {
return err
}
return nil
}, pythonConfig{}),
}