Skip to content

Commit

Permalink
added missing descriptions for user api commands (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3inlc committed Sep 21, 2022
1 parent c5ac9e3 commit ce7cafa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/inc/defines/userApi.php
Expand Up @@ -587,6 +587,8 @@ public function describe($constant) {
return "Set how errors from an agent should be handled";
case USectionAgent::SET_TRUSTED:
return "Set if an agent is trusted or not";
case USectionAgent::DELETE_AGENT:
return "Delete agents";
default:
return "__" . $constant . "__";
}
Expand Down Expand Up @@ -672,6 +674,10 @@ public function describe($constant) {
return "Archive supertasks";
case USectionTask::GET_CRACKED:
return "Retrieve all cracked hashes by a task";
case USectionTask::SET_TASK_MAX_AGENTS:
return "Set max agents for tasks";
case USectionTask::TASK_ASSIGN_AGENT:
return "Assign agents to a task";
default:
return "__" . $constant . "__";
}
Expand Down Expand Up @@ -714,6 +720,8 @@ public function describe($constant) {
return "Set if a preconfigured task is small or not";
case USectionPretask::DELETE_PRETASK:
return "Delete preconfigured tasks";
case USectionPretask::SET_PRETASK_MAX_AGENTS:
return "Set max agents for a preconfigured task";
default:
return "__" . $constant . "__";
}
Expand Down

0 comments on commit ce7cafa

Please sign in to comment.