code: public static CliCommand fromDef(CommandDef def) {
          final Identifier identifier = def.getIdentifier();
          final List<CliParam> params = createParams(def.getParamDefs());
          final CommandExecutor executor = def.getExecutor();
          return from(identifier, params, executor);
      }
docs: Construct a CLI command from a {@link CommandDef}.
  
  @param def CommandDef to construct a CLI command from.
  @return A CLI command constructed from the CommandDef.