MCPcopy Create free account
hub / github.com/diillson/chatcli / handleSkipChunk

Method handleSkipChunk

cli/cli_file_processing.go:731–741  ·  view source on GitHub ↗

Método para pular explicitamente um chunk

()

Source from the content-addressed store, hash-verified

729
730// Método para pular explicitamente um chunk
731func (cli *ChatCLI) handleSkipChunk() bool {
732 if len(cli.fileChunks) == 0 {
733 fmt.Println(i18n.T("chunk.no_pending_to_skip"))
734 return false
735 }
736 skippedChunk := cli.fileChunks[0]
737 cli.fileChunks = cli.fileChunks[1:]
738 fmt.Println(i18n.T("chunk.skipping", skippedChunk.Index, skippedChunk.Total))
739 cli.printChunkStatus()
740 return false
741}
742
743// Método auxiliar para imprimir o status dos chunks
744func (cli *ChatCLI) printChunkStatus() {

Callers 1

buildRoutesMethod · 0.80

Calls 2

printChunkStatusMethod · 0.95
TFunction · 0.92

Tested by

no test coverage detected