Lines Matching refs:argv

84 Value* UIPrintFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) {  in UIPrintFn()  argument
86 if (!ReadArgs(state, argv, &args)) { in UIPrintFn()
100 const std::vector<std::unique_ptr<Expr>>& argv) { in PackageExtractFileFn() argument
101 if (argv.size() < 1 || argv.size() > 2) { in PackageExtractFileFn()
103 argv.size()); in PackageExtractFileFn()
106 if (argv.size() == 2) { in PackageExtractFileFn()
110 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn()
112 argv.size()); in PackageExtractFileFn()
161 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn()
163 argv.size()); in PackageExtractFileFn()
198 const std::vector<std::unique_ptr<Expr>>& argv) { in PatchPartitionCheckFn() argument
199 if (argv.size() != 2) { in PatchPartitionCheckFn()
201 "%s(): Invalid number of args (expected 2, got %zu)", name, argv.size()); in PatchPartitionCheckFn()
205 if (!ReadArgs(state, argv, &args, 0, 2)) { in PatchPartitionCheckFn()
239 const std::vector<std::unique_ptr<Expr>>& argv) { in PatchPartitionFn() argument
240 if (argv.size() != 3) { in PatchPartitionFn()
242 "%s(): Invalid number of args (expected 3, got %zu)", name, argv.size()); in PatchPartitionFn()
246 if (!ReadArgs(state, argv, &args, 0, 2)) { in PatchPartitionFn()
264 if (!ReadValueArgs(state, argv, &values, 2, 1) || values[0]->type != Value::Type::BLOB) { in PatchPartitionFn()
281 Value* MountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in MountFn() argument
282 if (argv.size() != 4 && argv.size() != 5) { in MountFn()
284 argv.size()); in MountFn()
288 if (!ReadArgs(state, argv, &args)) { in MountFn()
297 if (argv.size() == 5) { in MountFn()
328 Value* IsMountedFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IsMountedFn() argument
329 if (argv.size() != 1) { in IsMountedFn()
330 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in IsMountedFn()
334 if (!ReadArgs(state, argv, &args)) { in IsMountedFn()
351 Value* UnmountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UnmountFn() argument
352 if (argv.size() != 1) { in UnmountFn()
353 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in UnmountFn()
356 if (!ReadArgs(state, argv, &args)) { in UnmountFn()
386 Value* FormatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in FormatFn() argument
387 if (argv.size() != 5) { in FormatFn()
389 argv.size()); in FormatFn()
393 if (!ReadArgs(state, argv, &args)) { in FormatFn()
478 const std::vector<std::unique_ptr<Expr>>& argv) { in ShowProgressFn() argument
479 if (argv.size() != 2) { in ShowProgressFn()
481 argv.size()); in ShowProgressFn()
485 if (!ReadArgs(state, argv, &args)) { in ShowProgressFn()
508 const std::vector<std::unique_ptr<Expr>>& argv) { in SetProgressFn() argument
509 if (argv.size() != 1) { in SetProgressFn()
510 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in SetProgressFn()
514 if (!ReadArgs(state, argv, &args)) { in SetProgressFn()
530 Value* GetPropFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in GetPropFn() argument
531 if (argv.size() != 1) { in GetPropFn()
532 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetPropFn()
535 if (!Evaluate(state, argv[0], &key)) { in GetPropFn()
551 const std::vector<std::unique_ptr<Expr>>& argv) { in FileGetPropFn() argument
552 if (argv.size() != 2) { in FileGetPropFn()
554 argv.size()); in FileGetPropFn()
558 if (!ReadArgs(state, argv, &args)) { in FileGetPropFn()
598 const std::vector<std::unique_ptr<Expr>>& argv) { in ApplyPatchSpaceFn() argument
599 if (argv.size() != 1) { in ApplyPatchSpaceFn()
601 argv.size()); in ApplyPatchSpaceFn()
604 if (!ReadArgs(state, argv, &args)) { in ApplyPatchSpaceFn()
622 Value* WipeCacheFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in WipeCacheFn() argument
623 if (!argv.empty()) { in WipeCacheFn()
625 argv.size()); in WipeCacheFn()
632 Value* RunProgramFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv)… in RunProgramFn() argument
633 if (argv.size() < 1) { in RunProgramFn()
638 if (!ReadArgs(state, argv, &args)) { in RunProgramFn()
649 Value* ReadFileFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in ReadFileFn() argument
650 if (argv.size() != 1) { in ReadFileFn()
651 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in ReadFileFn()
655 if (!ReadArgs(state, argv, &args)) { in ReadFileFn()
674 Value* WriteValueFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv)… in WriteValueFn() argument
675 if (argv.size() != 2) { in WriteValueFn()
677 argv.size()); in WriteValueFn()
681 if (!ReadArgs(state, argv, &args)) { in WriteValueFn()
708 Value* RebootNowFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in RebootNowFn() argument
709 if (argv.size() != 2) { in RebootNowFn()
711 argv.size()); in RebootNowFn()
715 if (!ReadArgs(state, argv, &args)) { in RebootNowFn()
749 Value* SetStageFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in SetStageFn() argument
750 if (argv.size() != 2) { in SetStageFn()
752 argv.size()); in SetStageFn()
756 if (!ReadArgs(state, argv, &args)) { in SetStageFn()
783 Value* GetStageFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in GetStageFn() argument
784 if (argv.size() != 1) { in GetStageFn()
785 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetStageFn()
789 if (!ReadArgs(state, argv, &args)) { in GetStageFn()
804 …WipeBlockDeviceFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in WipeBlockDeviceFn() argument
805 if (argv.size() != 2) { in WipeBlockDeviceFn()
807 argv.size()); in WipeBlockDeviceFn()
811 if (!ReadArgs(state, argv, &args)) { in WipeBlockDeviceFn()
827 …e* EnableRebootFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in EnableRebootFn() argument
828 if (!argv.empty()) { in EnableRebootFn()
830 argv.size()); in EnableRebootFn()
836 Value* Tune2FsFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in Tune2FsFn() argument
837 if (argv.empty()) { in Tune2FsFn()
838 return ErrorAbort(state, kArgsParsingFailure, "%s() expects args, got %zu", name, argv.size()); in Tune2FsFn()
842 if (!ReadArgs(state, argv, &args)) { in Tune2FsFn()
856 const std::vector<std::unique_ptr<Expr>>& argv) { in AddSlotSuffixFn() argument
857 if (argv.size() != 1) { in AddSlotSuffixFn()
858 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in AddSlotSuffixFn()
861 if (!ReadArgs(state, argv, &args)) { in AddSlotSuffixFn()