# LibTmux.HookEntry

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-julia/blob/0e761d353bc0606f69ad87994958d09a92c7f7d1/src/configuration.jl#L27
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-hookentry/

```
LibTmux.HookEntry(
    name::String,
    index::Union{Nothing, Int64},
    command::Union{Nothing, String},
    inherited::Bool,
)

LibTmux.HookEntry(name, index, command, inherited)
```

A sparse hook row; `index=command=nothing` records an explicitly empty array.

## Methods

### `HookEntry` (overload 1)

```julia
LibTmux.HookEntry(
    name::String,
    index::Union{Nothing, Int64},
    command::Union{Nothing, String},
    inherited::Bool,
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/0e761d353bc0606f69ad87994958d09a92c7f7d1/src/configuration.jl#L29).

### `LibTmux.HookEntry(name, index, command, inherited)`

[Source](https://github.com/libtmux/libtmux-julia/blob/0e761d353bc0606f69ad87994958d09a92c7f7d1/src/configuration.jl#L29).

## Parameters

- `name` (`String`) (for `HookEntry(name, index, command, inherited) [overload 1]`)
- `index` (`Union{Nothing, Int64}`) (for `HookEntry(name, index, command, inherited) [overload 1]`)
- `command` (`Union{Nothing, String}`) (for `HookEntry(name, index, command, inherited) [overload 1]`)
- `inherited` (`Bool`) (for `HookEntry(name, index, command, inherited) [overload 1]`)
- `name` (`Any`) (for `HookEntry(name, index, command, inherited) [overload 2]`)
- `index` (`Any`) (for `HookEntry(name, index, command, inherited) [overload 2]`)
- `command` (`Any`) (for `HookEntry(name, index, command, inherited) [overload 2]`)
- `inherited` (`Any`) (for `HookEntry(name, index, command, inherited) [overload 2]`)

## Members

### Other members

- [`command`](/en/julia/latest/reference/libtmux-hookentry-command/) (property)
- [`index`](/en/julia/latest/reference/libtmux-hookentry-index/) (property)
- [`inherited`](/en/julia/latest/reference/libtmux-hookentry-inherited/) (property)
- [`name`](/en/julia/latest/reference/libtmux-hookentry-name/) (property)
