def tags_update(ctx, spec, **kwargs): """ Updates a tag specified by SPEC argument. SPEC can be either ID or Name of the tag. If SPEC is Name, then the lookup is done in the default workspace, unless --workspace is specified. """ helpers.entity_update(api.Tag, spec, obj=ctx.obj, **kwargs)
def tasks_update(ctx, spec, **kwargs): """ Updates a task specified by SPEC which is either ID or Name of the task. """ helpers.entity_update(api.Task, spec, obj=ctx.obj, **kwargs)
def project_users_update(ctx, spec, **kwargs): """ Updates project's user specified by SPEC, which can be only ID of the project's user (not user itself). """ helpers.entity_update(api.ProjectUser, spec, field_lookup=('id',), obj=ctx.obj, **kwargs)
def workspace_users_update(ctx, spec, **kwargs): """ Updates a workspace user specified by SPEC which is either Workspace User's ID or Email. """ helpers.entity_update(api.WorkspaceUser, spec, ('id', 'email'), obj=ctx.obj, **kwargs)
def projects_update(ctx, spec, **kwargs): """ Updates a project specified by SPEC which is either ID or Name of the project. """ helpers.entity_update(api.Project, spec, obj=ctx.obj, **kwargs)