<commit_before>package main

var cmdPs = &Command{
	Exec:        runPs,
	UsageLine:   "ps [options]",
	Description: "Ps lists Scaleway servers",
	Help: `
Ps lists Scaleway servers. By default, only running servers are displayed.`,
}

func init() {
	cmdPs.Flag.BoolVar(&psA, "a", false, "show all servers. only running servers are shown by default")
	cmdPs.Flag.BoolVar(&psL, "l", false, "show only the latest created server, include non-running ones")
	cmdPs.Flag.BoolVar(&psNoTrunc, "-no-trunc", false, "don't truncate output")
	cmdPs.Flag.IntVar(&psN, "n", 0, "show n last created servers, include non-running ones")
	cmdPs.Flag.BoolVar(&psQ, "q", false, "only display numeric IDs")
}

// Flags
var psA bool       // -a flag
var psL bool       // -l flag
var psQ bool       // -q flag
var psNoTrunc bool // --no-trunc flag
var psN int        // -n flag

func runPs(cmd *Command, args []string) {
}
<commit_msg>Implemented 'scw ps --no-trunc'. #16<commit_after>package main

import (
	"fmt"
	"os"
)

var cmdPs = &Command{
	Exec:        runPs,
	UsageLine:   "ps [options]",
	Description: "Ps lists Scaleway servers",
	Help: `
Ps lists Scaleway servers. By default, only running servers are displayed.`,
}

func init() {
	cmdPs.Flag.BoolVar(&psA, "a", false, "show all servers. only running servers are shown by default")
	cmdPs.Flag.BoolVar(&psL, "l", false, "show only the latest created server, include non-running ones")
	cmdPs.Flag.BoolVar(&psNoTrunc, "-no-trunc", false, "don't truncate output")
	cmdPs.Flag.IntVar(&psN, "n", 0, "show n last created servers, include non-running ones")
	cmdPs.Flag.BoolVar(&psQ, "q", false, "only display numeric IDs")
}

// Flags
var psA bool       // -a flag
var psL bool       // -l flag
var psQ bool       // -q flag
var psNoTrunc bool // --no-trunc flag
var psN int        // -n flag

func runPs(cmd *Command, args []string) {
	api, err := GetScalewayAPI()
	if err != nil {
		fmt.Fprintf(os.Stderr, "unable to init Scaleway API: %v\n", err)
		os.Exit(1)
	}
	servers, err := api.GetServers()
	if err != nil {
		fmt.Fprintf(os.Stderr, "unable to fetch servers from the Scaleway API: %v\n", err)
		os.Exit(1)
	}
	for _, server := range *servers {
		fmt.Printf("%s\n", server.Identifier)
	}
}

{'fraction_non_alphanumeric': 0.14560931899641577, 'fraction_numerical': 0.002688172043010753, 'mean_word_length': 3.395669291338583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '266409', 'n_tokens_mistral': 807, 'n_tokens_neox': 791, 'n_words': 264}