You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nezha.rs
    path of file: ./repos/oreboot/xtask/src/sunxi
    
    the code of the file until where you have to start completion: use crate::util::{
    dist_dir, find_binutils_prefix_or_fail, get_cargo_cmd_in, objcopy, objdump, project_root,
};
use crate::{gdb_detect, Cli, Commands, Env, Memory};
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use log::{error, info, trace};
use std::{
    fs::File,
    io::{self, ErrorKind, Seek, SeekFrom, Write},
    process::{self, Command, Stdio},
};

use oreboot_compression::OreLzss;

const ARCH: &str = "riscv64";
const TARGET: &str = "riscv64imac-unknown-none-elf";
const BOARD_DIR: &str = "src/mainboard/sunxi/nezha";

const BT0_ELF: &str = "oreboot-nezha-bt0";
const BT0_BIN: &str = "oreboot-nezha-bt0.bin";

const MAIN_ELF: &str = "oreboot-nezha-main";
const MAIN_BIN: &str = "oreboot-nezha-main.bin";

const IMAGE_BIN: &str = "oreboot-nezha.bin";

pub(crate) fn execute_command(args: &Cli, features: Vec<String>) {
    match args.command {
        Commands::Make => {
            info!("Build oreboot image for D1");
            build_image(&args.env, &features);
        }
        Commands::Flash => {
            // TODO: print out variant etc
            info!("Build and flash oreboot image for D1");
            let xfel = find_xfel();
            xfel_find_connected_device(xfel);
            build_image(&args.env, &features);
            burn_d1_bt0(xfel, &args.env);
        }
        Commands::Asm => {
            info!("B
    
pub(crate) fn execute_command(args: &Cli, features: Vec<String>) {
    match args.command {
        Commands::Make => {
            info!("Build oreboot image for D1");
            build_image(&args.env, &features);
        }
        Commands::Flash => {
            // TODO: print out variant etc
            info!("Build and flash oreboot image for D1");
            let xfel = find_xfel();
            xfel_find_connected_device(xfel);
            build_image(&args.env, &features);
            burn_d1_bt0(xfel, &args.env);
        }
        Commands::Asm => {
            info!("Build bt0 and view assembly for D1");
            let binutils_prefix = &find_binutils_prefix_or_fail(ARCH);
            build_d1_bt0(&args.env, &features);
            objdump(&args.env, binutils_prefix, TARGET, BT0_ELF);
        }
        Commands::Gdb => {
            info!("Debug bt0 for D1 using gdb");
            build_d1_bt0(&args.env, &features);
            let gdb_path = if let Ok(ans) = gdb_detect::load_gdb_path_from_file() {
                ans
            } else {
                let ans = gdb_detect::detect_gdb_path();
                gdb_detect::save_gdb_path_to_file(&ans);
                trace!("saved GDB path");
                ans
            };
            let gdb_server = if let Ok(ans) = gdb_detect::load_gdb_server_from_file() {
                ans
            } else {
                let ans = gdb_detect::detect_gdb_server(&gdb_path);
                gdb_detect::save_gdb_server_to_file(&ans);
                trace!("saved GDB server");
                ans
            };
            debug_gdb(&gdb_path, &gdb_server, &args.env);
        }
    }
}