blob: c3414d3f2f1e05407ae82df300c9ae9ea2815d50 [file]
// Copyright 2026 The GN Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TOOLS_GN_EDIT_COMMAND_H_
#define TOOLS_GN_EDIT_COMMAND_H_
#include <string>
#include <vector>
#include "gn/edit_subcommands.h"
#include "gn/err.h"
#include "gn/source_file.h"
class Setup;
namespace commands {
// Runs an edit command, and returns a list of files that were modified.
Result<std::pair<std::vector<SourceFile>, EditState>> RunEditImpl(
const std::vector<std::string>& args,
Setup& setup);
} // namespace commands
#endif // TOOLS_GN_EDIT_COMMAND_H_